the current position inside the buffer
read a single signed byte (8 bits) from the stream.
the value read
read a byte stream to the stream. The method reads the length of the byte array from the stream as a 32 bits integer before reading the byte stream.
read a single 64-bit floating point number from the stream.
read a single 32-bit floating point number from the stream.
read a single signed 16-bit integer from the stream.
read a single signed 32-bit integer from the stream.
read a single unsigned 16-bit integer from the stream.
read a single unsigned 32-bit integer from the stream.
read a single unsigned byte (8 bits) from the stream.
set the cursor to the begining of the stream
a buffer or byte array write
the offset position (default =0)
the number of byte to write
write a byte stream to the stream. The method writes the length of the byte array into the stream as a 32 bits integer before the byte stream.
the buffer to write.
write a single 64 bit floating number to the stream.
the value to write
write a single 32 bit floating number to the stream.
the value to write
write a single 16 bit signed integer to the stream.
the value to write
write a single signed byte (8 bits) to the stream. value must be in the range of [-127,128]
the value to write
write a single 32 bit signed integer to the stream.
the value to write
write a single 16 bit unsigned integer to the stream.
the value to write
write a single 32 bit unsigned integer to the stream.
the value to write
write a single unsigned byte (8 bits) to the stream.
the value to write
Generated using TypeDoc
a BinaryStream can be use to perform sequential read or write inside a buffer. The BinaryStream maintains a cursor up to date as the caller operates on the stream using the various read/write methods. It uses the Little Endian It uses the Little Endian convention.
data can either be:
example: