Msg

upack.Msg
See theMsg companion object
sealed trait Msg extends Readable, Writable

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.

Attributes

Companion
object
Graph
Supertypes
trait Writable
trait Readable
class Object
trait Matchable
class Any
Known subtypes
class Arr
class Binary
class Bool
object False.type
object True.type
class Ext
class Float32
class Float64
class Int32
class Int64
object Null.type
class Obj
class Str
class UInt64
Show all

Members list

Value members

Concrete methods

def arr: ArrayBuffer[Msg]

Returns the elements of this Msg, fails if it is not a upack.Arr

Returns the elements of this Msg, fails if it is not a upack.Arr

Attributes

def binary: Array[Byte]

Returns the String value of this Msg, fails if it is not a upack.Str

Returns the String value of this Msg, fails if it is not a upack.Str

Attributes

def bool: Boolean

Returns the Boolean value of this Msg, fails if it is not a upack.Bool

Returns the Boolean value of this Msg, fails if it is not a upack.Bool

Attributes

override def httpContentType: Option[String]

Attributes

Definition Classes
Writable
def int32: Int

Returns the Double value of this Msg, fails if it is not a upack.Int32, upack.Int64 or upack.UInt64

Returns the Double value of this Msg, fails if it is not a upack.Int32, upack.Int64 or upack.UInt64

Attributes

def int64: Long

Returns the Double value of this Msg, fails if it is not a upack.Int32, upack.Int64 or upack.UInt64

Returns the Double value of this Msg, fails if it is not a upack.Int32, upack.Int64 or upack.UInt64

Attributes

def isNull: Boolean

Returns true if the value of this Msg is ujson.Null, false otherwise

Returns true if the value of this Msg is ujson.Null, false otherwise

Attributes

def obj: LinkedHashMap[Msg, Msg]

Returns the key/value map of this Msg, fails if it is not a upack.Obj

Returns the key/value map of this Msg, fails if it is not a upack.Obj

Attributes

def str: String

Returns the String value of this Msg, fails if it is not a upack.Str

Returns the String value of this Msg, fails if it is not a upack.Str

Attributes

def transform[T](f: Visitor[_, T]): T
def writeBytesTo(out: OutputStream): Unit

Inherited methods

def contentLength: Option[Long]

Attributes

Inherited from:
Writable