upack
package upack
- Alphabetic
- By Inheritance
- upack
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class Arr(value: ArrayBuffer[Msg]) extends Msg with Product with Serializable
- abstract class BaseMsgPackReader extends AnyRef
- case class Binary(value: Array[Byte]) extends Msg with Product with Serializable
- sealed abstract class Bool extends Msg
- case class Ext(tag: Byte, data: Array[Byte]) extends Msg with Product with Serializable
- case class Float32(value: Float) extends Msg with Product with Serializable
- case class Float64(value: Double) extends Msg with Product with Serializable
- class InputStreamMsgPackReader extends BaseMsgPackReader with BufferingInputStreamParser
- case class Int32(value: Int) extends Msg with Product with Serializable
- case class Int64(value: Long) extends Msg with Product with Serializable
-
sealed
trait
Msg extends Readable with Writable
In-memory representation of the MessagePack data model
In-memory representation of the MessagePack data model
test - https://msgpack.org/index.html
Note that we do not model all the fine details of the MessagePack format in this type; fixed and variable length strings/maps/arrays are all modelled using the same Str/Obj/Arr types, and the various sized integers are all collapsed into Int32/Int64/UInt64. The appropriately sized versions are written out when the message is serialized to bytes.
- class MsgPackReader extends BaseMsgPackReader
- class MsgPackWriter[T <: OutputStream] extends MsgVisitor[T, T]
-
trait
MsgVisitor[-T, +J] extends Visitor[T, J]
A Visitor specialized to work with msgpack types.
A Visitor specialized to work with msgpack types. Forwards the not-msgpack-related methods to their msgpack equivalents.
- case class Obj(value: LinkedHashMap[Msg, Msg]) extends Msg with Product with Serializable
- trait Readable extends AnyRef
- case class Str(value: String) extends Msg with Product with Serializable
- case class UInt64(value: Long) extends Msg with Product with Serializable
Value Members
- def copy(t: Msg): Msg
-
def
read(s: Readable): Msg
Read the given MessagePack input into a MessagePack struct
- def transform[T](t: Readable, v: Visitor[_, T]): T
-
def
validate(s: Readable): Unit
Parse the given MessagePack input, failing if it is invalid
-
def
write(t: Msg): Array[Byte]
Write the given MessagePack struct as a binary
-
def
writeTo(t: Msg, out: OutputStream): Unit
Write the given MessagePack struct as a binary to the given OutputStream
- object Arr extends Serializable
- object Bool
- object False extends Bool with Product with Serializable
- object Msg extends MsgVisitor[Msg, Msg]
- object MsgPackKeys
- object Null extends Msg with Product with Serializable
- object Obj extends Serializable
- object Readable
- object True extends Bool with Product with Serializable