19 unsigned int read(
int bits);
21 void write(
unsigned int data,
int bits);
bool ownsBuffer
Indicates whether the buffer is owned by the stream object.
Contains all classes and functions for the VoxelFarm engine.
unsigned int read(int bits)
Reads the specified number of bits.
int pos
Current read/write position in the stream.
void write(unsigned int data, int bits)
Writes the specified number of bits.
unsigned char * buffer
A buffer that contains the data.
A class for binary streams.
void allocate(int size)
Reserves a specified number of bytes in the stream.