Stream

A stream

Members

Functions

eof
bool eof()

Gets whether we're EOF

length
size_t length()

Gets the length of the stream

peek
ubyte[] peek(size_t length)

Peeks bytes

read
ubyte[] read(size_t length)

Reads X amount of bytes from stream

seek
void seek(ptrdiff_t pos)

Sets the position in the stream

skip
void skip(ptrdiff_t pos)

Skips pos amount of bytes in the stream

tell
size_t tell()

Gets the position in the stream

Meta