anchovy.utils.streamutils

Undocumented in source.

Members

Classes

StreamUtilsException
class StreamUtilsException
Undocumented in source.

Functions

Check
void Check(ubyte[] inData)
Undocumented in source. Be warned that the author may not have intended to support it.
Crop
void Crop(ubyte[] inData)

Crops the value from the begining of the stream. If chek is true it will check if cropping is possible

Peek
T Peek(ubyte[] inData)
Read
T Read(ubyte[] inData)

Peeks the value from the begining of the stream and Crops it

ReadArray
T[] ReadArray(ubyte[] inData, uint length)

Reads array of elements of type T from byte array data and changes data to point to slice after this array. The elements in stream are stored in Big Endian. If length of stream in less then length of inquired data then empty array is returned.

Write
void Write(ubyte[] outData, T var)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta