InputStream

A stream inteface that allows to read data from it. Reading any data implies position advance by corresponding number of bytes. Methods shouldn't throw on EOF, may throw on a more serious error

Members

Functions

fillArray
bool fillArray(T[] array)

Attempts to fill an array with raw data from stream. Returns true if the array was filled, false otherwise

readBE
bool readBE(T* value)

Reads big-endian integer, converts to native-endian and stores in value

readBytes
size_t readBytes(void* buffer, size_t count)

Attempts to read count bytes from stream and stores them in memory pointing by buffer. Returns number of bytes actually read

readLE
bool readLE(T* value)

Reads little-endian integer, converts to native-endian and stores in value

readable
bool readable()

Returns true if there are any data to read. false means end of the stream.

Inherited Members

From Stream

close
void close()

Closes the stream. Closed stream cannot be read or written any more

seekable
bool seekable()

Returns true if it is legal to use Seekable functionality on this stream

Meta