Put an element of type T into the stream
Put a string into the stream
Put a byte array into the stream
Returns a copy of underlying bytes
Returns underlying bytes. MAY LEAK REFERENCES
IMemStream m; m.put!ubyte(10); m.put!short(11); m.put!int(14); auto res = m.getBytes; assert(res.length == 7); assert(res[0] == 10); assert(res[1] == 11); assert(res[2] == 0); assert(res[3] == 14); assert(res[4] == 0); assert(res[5] == 0); assert(res[6] == 0);
Input memory stream. Convenient for storing elements in a byte array