OMemStream

Output memory stream. Convenient for accessing elements in a byte array

Constructors

this
this(ubyte[] data)

Constructs new output memory stream from data

Members

Functions

read
T read()

Read an element from stream. If there are no elements, returns default constructed T

read
ubyte[] read(size_t size)

Read size bytes from the stream

Properties

eof
bool eof [@property getter]

Check if the stream had ended

Meta