Unpacker

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

MessageUnpacker interface

Attributes

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

Members list

Value members

Abstract methods

def hasNext: Boolean
def readPayload(dst: Array[Byte]): Unit
def readPayload(dst: Array[Byte], offset: Int, length: Int): Unit
def readPayload(length: Int): Array[Byte]
def skipValue: Unit
def skipValue(count: Int): Unit
def tryUnpackNil: Boolean

Peeks a Nil byte and read it if the next byte is actually a Nil value, then proceed the cursor 1 byte and return true.

Peeks a Nil byte and read it if the next byte is actually a Nil value, then proceed the cursor 1 byte and return true.

If the next byte is not Nil, it will return false and the cursor position will not be changed.

Attributes

Returns

true if a nil value is read and the cursor is proceeded 1 bytes. false if the next value is not Nil and the cursor position will not change.

def unpackBigInteger: BigInteger
def unpackBoolean: Boolean
def unpackByte: Byte
def unpackDouble: Double
def unpackExtValue(extTypeHeader: ExtTypeHeader): Value
def unpackFloat: Float
def unpackInt: Int
def unpackLong: Long
def unpackMapHeader: Int
def unpackNil: Unit
def unpackShort: Short
def unpackString: String
def unpackTimestamp: Instant
def unpackTimestamp(extTypeHeader: ExtTypeHeader): Instant

Inherited methods

def close(): Unit

Attributes

Inherited from:
AutoCloseable