ArrayReadBuffer
open class ArrayReadBuffer(buffer: ByteArray, offset: Int = 0, val limit: Int = buffer.size - offset) : ReadBuffer
Inheritors
Properties
Functions
Link copied to clipboard
Expose ReadBuffer as an array of bytes. This method is meant to be as efficient as possible, so for an array-backed ReadBuffer, it should return its own internal data. In case access to internal data is not possible, a copy of the data into an array of bytes might occur.
Link copied to clipboard
Read boolean from the buffer. Booleans as stored as a single byte
Link copied to clipboard
Creates a new ReadBuffer point to a region of the current buffer, starting at start with size size.