ByteStream

Class that allows simple reading and writing of high level types such as integers and strings to/from bytes.

Members

Functions

allocRequest
void allocRequest(in ulong size)

Request "size" amount of bytes to be added to the buffer.

read
byte[] read(in int len)

Read "len" amount of bytes. The bytes returned have been DUPLICATED, to exactly read use readExact();

readU
ubyte[] readU(in int len)

Read "len amount of bytes unsigned. The bytes returned have been DUPLICATED.

skip
void skip(in uint bytes)

Skip "bytes" amount of bytes. The buffer's position will increment by that amount.

write
void write(in byte[] data)

Write "data" to the buffer

Meta

Authors

jython234