DecodeMsgPack reverses the encode operation on a byte slice input.
(buf []byte, out interface{})
| 36 | |
| 37 | // DecodeMsgPack reverses the encode operation on a byte slice input. |
| 38 | func DecodeMsgPack(buf []byte, out interface{}) error { |
| 39 | dec := codec.NewDecoder(bytes.NewReader(buf), msgPackHandle) |
| 40 | return dec.Decode(out) |
| 41 | } |
| 42 | |
| 43 | // DecodeMsgPackPlain reverses the encode operation on a byte slice input without RawToString setting. |
| 44 | func DecodeMsgPackPlain(buf []byte, out interface{}) error { |
no outgoing calls