proc `$`*(msg: Msg): string
-
proc FixArray*(v: seq[Msg]): Msg
-
proc Array16*(v: seq[Msg]): Msg
-
proc Array32*(v: seq[Msg]): Msg
-
proc FixMap*(v: seq[tuple[key: Msg, val: Msg]]): Msg
-
proc Map16*(v: seq[tuple[key: Msg, val: Msg]]): Msg
-
proc Map32*(v: seq[tuple[key: Msg, val: Msg]]): Msg
-
proc PFixNum*(v: uint8): Msg
-
proc NFixNum*(v: int8): Msg
-
proc UInt8*(v: uint8): Msg
-
proc UInt16*(v: uint16): Msg
-
proc UInt32*(v: uint32): Msg
-
proc UInt64*(v: uint64): Msg
-
proc Int8*(v: int8): Msg
-
proc Int16*(v: int16): Msg
-
proc Int32*(v: int32): Msg
-
proc Int64*(v: int64): Msg
-
proc Float32*(v: float32): Msg
-
proc Float64*(v: float64): Msg
-
proc FixStr*(v: string): Msg
-
proc Str8*(s: string): Msg
-
proc Str16*(s: string): Msg
-
proc Str32*(s: string): Msg
-
proc Bin8*(v: seq[byte]): Msg
-
proc Bin16*(v: seq[byte]): Msg
-
proc Bin32*(v: seq[byte]): Msg
-
proc FixExt1*(v: Ext): Msg
-
proc FixExt2*(v: Ext): Msg
-
proc FixExt4*(v: Ext): Msg
-
proc FixExt8*(v: Ext): Msg
-
proc FixExt16*(v: Ext): Msg
-
proc Ext8*(v: Ext): Msg
-
proc Ext16*(v: Ext): Msg
-
proc Ext32*(v: Ext): Msg
-
proc wrap*(x: Msg): Msg
-
proc wrap*(x: bool): Msg
-
proc wrap*(x: int): Msg
-
Given x of int and returns a Msg object that is most compression-effective. The rule of thumb is use wrap if you don't know in advance what Msg type it will become, otherwise use specific conversion to Msg which can reduce overhead to determine the Msg type.
proc wrap*(x: float): Msg
-
proc wrap*(x: string): Msg
-
proc wrap*(x: seq[byte]): Msg
-
proc wrap*(x: Ext): Msg
-
proc wrap*[T: Wrappable](x: seq[T]): Msg
-
proc wrap*[K: Wrappable, V: Wrappable](x: seq[tuple[key: K, val: V]]): Msg
-
proc unwrapBool*(x: Msg): bool
-
proc unwrapInt*(x: Msg): int
-
proc unwrapFloat*(x: Msg): float
-
proc unwrapStr*(x: Msg): string
-
proc unwrapBin*(x: Msg): seq[byte]
-
proc unwrapArray*(x: Msg): seq[Msg]
-
proc unwrapMap*(x: Msg): seq[tuple[key: Msg, val: Msg]]
-
proc unwrapExt*(x: Msg): Ext
-
proc pack*(st: Stream; msg: Msg)
-
Serialize message to streaming byte sequence
proc unpack*(st: Stream): Msg
-
Deserialize streaming byte sequence to message
proc t*(msg: Msg)
-
Test by cyclic translation. Don't use.