- getSize
Gets the current size of the stream in number of bytes.
- getPosition
Gets the current position in the stream.
- truncateToPosition
Truncates this stream to the new position. After this call, both size and
position will equal the ne
- writeByte
Write a single byte to the stream. The byte to be written is the eight low-order
bits of the specifi
- writeBytes
Writes length bytes from the byte array, starting at offset.
- writeCString
Writes a BSON CString to the stream.
- writeInt32
Writes a 32-bit BSON integer to the stream at the given position. This is useful
for patching in the
- writeInt64
Writes a 64-bit BSON integer to the stream.
- writeDouble
Writes a BSON double to the stream.
- writeString
Writes a BSON String to the stream.