BufferPacker

trait BufferPacker extends Packer
trait Packer
trait AutoCloseable
class Object
trait Matchable
class Any

Value members

Abstract methods

def clear: Unit
def toByteArray: Array[Byte]

Inherited methods

def addPayload(src: Array[Byte], offset: Int, length: Int): BufferPacker
Inherited from:
Packer
def addPayload(src: Array[Byte]): BufferPacker
Inherited from:
Packer
@throws(java.lang.Exception)
def close(): Unit
Inherited from:
AutoCloseable
def packArrayHeader(arraySize: Int): BufferPacker
Inherited from:
Packer
def packBigInteger(v: BigInteger): BufferPacker
Inherited from:
Packer
Inherited from:
Packer
def packBoolean(v: Boolean): BufferPacker
Inherited from:
Packer
def packByte(v: Byte): BufferPacker
Inherited from:
Packer
def packDouble(v: Double): BufferPacker
Inherited from:
Packer
Inherited from:
Packer
def packExtensionTypeHeader(extType: Byte, payloadLen: Int): BufferPacker
Inherited from:
Packer
def packFloat(v: Float): BufferPacker
Inherited from:
Packer
def packInt(v: Int): BufferPacker
Inherited from:
Packer
def packLong(v: Long): BufferPacker
Inherited from:
Packer
def packMapHeader(mapSize: Int): BufferPacker
Inherited from:
Packer
Inherited from:
Packer
Inherited from:
Packer
def packShort(v: Short): BufferPacker
Inherited from:
Packer
def packString(v: String): BufferPacker
Inherited from:
Packer
def packTimestamp(epochSecond: Long, nanoAdjustment: Int): BufferPacker

if nanoAdjustment == 0 and epochSeconds <= 2^32, it will encode the timestamp using Timestamp32. Otherwise, an appropriate timestamp code is chosen automatically from one of timestamp32, timestamp64, and timestamp96.

if nanoAdjustment == 0 and epochSeconds <= 2^32, it will encode the timestamp using Timestamp32. Otherwise, an appropriate timestamp code is chosen automatically from one of timestamp32, timestamp64, and timestamp96.

Inherited from:
Packer
def packTimestamp(v: Instant): BufferPacker
Inherited from:
Packer
Inherited from:
Packer
def writePayload(src: Array[Byte], offset: Int, length: Int): BufferPacker
Inherited from:
Packer
def writePayload(src: Array[Byte]): BufferPacker
Inherited from:
Packer