Returns the elements of this Msg, fails if it is not a upack.Arr
Returns the String
value of this Msg, fails if it is not
a upack.Str
Returns the Boolean
value of this Msg, fails if it is not
a upack.Bool
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
Returns true if the value of this Msg is ujson.Null, false otherwise
Returns the key/value map of this Msg, fails if it is not a upack.Obj
Returns the String
value of this Msg, fails if it is not
a upack.Str
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.