InitMessagePack function initializes MessagePackCodec struct and returns it.
()
| 34 | |
| 35 | // InitMessagePack function initializes MessagePackCodec struct and returns it. |
| 36 | func InitMessagePack() MessagePackCodec { |
| 37 | return MessagePackCodec{ |
| 38 | MsgPack: NewMsgPackHandle(), |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // NewMessagePackEncoder function creates new MessagePackCodecEncoder and initializes it. |
| 43 | func NewMessagePackEncoder() *MessagePackCodecEncoder { |