MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / DecodeMsgPack

Function DecodeMsgPack

utils/msgpack.go:38–41  ·  view source on GitHub ↗

DecodeMsgPack reverses the encode operation on a byte slice input.

(buf []byte, out interface{})

Source from the content-addressed store, hash-verified

36
37// DecodeMsgPack reverses the encode operation on a byte slice input.
38func 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.
44func DecodeMsgPackPlain(buf []byte, out interface{}) error {

Callers 15

loadTxPoolFunction · 0.92
loadBlockFunction · 0.92
loadBlocksFunction · 0.92
loadAndCacheAccountsFunction · 0.92
loadAndCacheProvidersFunction · 0.92
decodeFromRawMethod · 0.92
TestTransactionWrapperFunction · 0.92
TestResponse_SignFunction · 0.92

Calls

no outgoing calls