MemoryStream

This subclass reads and constructs an array of bytes in memory.

Constructors

this
this()

Create the output buffer and setup for reading, writing, and seeking.

this
this(ubyte[] buf)

Create the output buffer and setup for reading, writing, and seeking. Load it with specific input data.

this
this(byte[] buf)
Undocumented in source.
this
this(char[] buf)
Undocumented in source.

Members

Functions

reserve
void reserve(size_t count)

Ensure the stream can write count extra bytes from cursor position without an allocation.

writeBlock
size_t writeBlock(void* buffer, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta