IMemStream.put

Put a string into the stream

  1. void put(T val)
  2. void put(T data)
    struct IMemStream
    @safe @nogc nothrow
    void
    put
    (
    T : string
    )
    ()
  3. void put(T data)
  4. void put(T val)
  5. void put(T val)

Examples

string test = "Hello, world!";
IMemStream stream;
stream.put(test);
for(int i=0; i<test.length; i++)
    assert(stream.getBytes[i] == test[i]);

Meta