BufferProvider

class Object
trait Matchable
class Any

Value members

Abstract methods

def alloc(size: Int): ByteBuffer

Makes sure the ByteBuffer has enough space for new data. If not, allocates a new ByteBuffer and returns it. The returned ByteBuffer must have little-endian ordering.

Makes sure the ByteBuffer has enough space for new data. If not, allocates a new ByteBuffer and returns it. The returned ByteBuffer must have little-endian ordering.

Value Params
size

Number of bytes needed for new data

def asByteBuffer: ByteBuffer

Completes the encoding and returns the ByteBuffer, merging the chain of buffers if necessary

Completes the encoding and returns the ByteBuffer, merging the chain of buffers if necessary

def asByteBuffers: Iterable[ByteBuffer]

Completes the encoding and returns a sequence of ByteBuffers

Completes the encoding and returns a sequence of ByteBuffers