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

Value members

Abstract methods

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

Concrete methods

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

Inherited methods

def close(): Unit

Attributes

Inherited from:
AutoCloseable