Packer

wvlet.airframe.msgpack.spi.Packer
trait Packer extends AutoCloseable

Message Packer interface

Attributes

Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def addPayload(src: Array[Byte]): Packer.this.type
def addPayload(src: Array[Byte], offset: Int, length: Int): Packer.this.type
def packArrayHeader(arraySize: Int): Packer.this.type
def packBigInteger(v: BigInteger): Packer.this.type
def packBinaryHeader(len: Int): Packer.this.type
def packBoolean(v: Boolean): Packer.this.type
def packByte(v: Byte): Packer.this.type
def packDouble(v: Double): Packer.this.type
def packExtensionTypeHeader(extType: Byte, payloadLen: Int): Packer.this.type
def packFloat(v: Float): Packer.this.type
def packInt(v: Int): Packer.this.type
def packLong(v: Long): Packer.this.type
def packMapHeader(mapSize: Int): Packer.this.type
def packNil: Packer.this.type
def packRawStringHeader(len: Int): Packer.this.type
def packShort(v: Short): Packer.this.type
def packString(v: String): Packer.this.type
def packTimestamp(epochSecond: Long, nanoAdjustment: Int): Packer.this.type

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.

Attributes

def packValue(v: Value): Packer.this.type
def writePayload(src: Array[Byte]): Packer.this.type
def writePayload(src: Array[Byte], offset: Int, length: Int): Packer.this.type

Concrete methods

def packExtensionTypeHeader(extensionTypeHeader: ExtTypeHeader): Packer.this.type
def packTimestamp(v: Instant): Packer.this.type

Inherited methods

def close(): Unit

Attributes

Inherited from:
AutoCloseable