IMemStream.put

Put a byte array into the stream

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

Examples

ubyte[4] data = [10, 11, 12, 13];
IMemStream stream;
stream.put(data);
for(int i=0; i<4; i++)
    assert(stream.getBytes[i] == data[i]);

Meta