- <init>
Creates a new buffer around the given stream.
- available
- compact
Compacts the unread bytes of the buffer to the beginning of the buffer.
- doubleBuffer
Doubles the size of the buffer.
- ensureBytes
Ensures that the buffer contains at least n bytes. This method invalidates the
buffer and index fiel
- getBuffer
Returns direct handle to the used buffer. Use the #ensureBytesto prefill
required bytes the buffer a
- getIndex
Returns the current read position in the buffer.
- moveBufferTo
Moves bytes from the buffer to the begining of the destination buffer. Also sets
the index and endIn
- read
- readMore
Reads more bytes into the buffer.
- scanCStringLength
Scans the length of the next null terminated string (C-style string) from the
stream.
- skip