Msg

sealed
trait Msg extends FromInput

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.

Companion
object
trait FromInput
class Object
trait Matchable
class Any
class Arr
class Binary
class Bool
object False
object True
class Ext
class Float32
class Float64
class Int32
class Int64
object Null
class Obj
class Str
class UInt64

Value members

Concrete methods

def arr: ArrayBuffer[Msg]

Returns the elements of this Msg, fails if it is not a com.rallyhealth.weepack.v1.Arr

Returns the elements of this Msg, fails if it is not a com.rallyhealth.weepack.v1.Arr

def binary: Array[Byte]

Returns the String value of this Msg, fails if it is not a com.rallyhealth.weepack.v1.Str

Returns the String value of this Msg, fails if it is not a com.rallyhealth.weepack.v1.Str

def bool: Boolean

Returns the Boolean value of this Msg, fails if it is not a com.rallyhealth.weepack.v1.Bool

Returns the Boolean value of this Msg, fails if it is not a com.rallyhealth.weepack.v1.Bool

def int64: Long
def isNull: Boolean

Returns true if the value of this Msg is com.rallyhealth.weejson.v1.Null, false otherwise

Returns true if the value of this Msg is com.rallyhealth.weejson.v1.Null, false otherwise

def obj: LinkedHashMap[Msg, Msg]

Returns the key/value map of this Msg, fails if it is not a com.rallyhealth.weepack.v1.Obj

Returns the key/value map of this Msg, fails if it is not a com.rallyhealth.weepack.v1.Obj

def str: String

Returns the String value of this Msg, fails if it is not a com.rallyhealth.weepack.v1.Str

Returns the String value of this Msg, fails if it is not a com.rallyhealth.weepack.v1.Str

def transform[T](to: Visitor[_, T]): T

Inherited methods

def validate[T](to: Visitor[_, T]): Try[T]
Inherited from
FromInput