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

Function EncodeMsgPack

utils/msgpack.go:53–58  ·  view source on GitHub ↗

EncodeMsgPack writes an encoded object to a new bytes buffer.

(in interface{})

Source from the content-addressed store, hash-verified

51
52// EncodeMsgPack writes an encoded object to a new bytes buffer.
53func EncodeMsgPack(in interface{}) (*bytes.Buffer, error) {
54 buf := bytes.NewBuffer(nil)
55 enc := codec.NewEncoder(buf, msgPackHandle)
56 err := enc.Encode(in)
57 return buf, err
58}
59
60// GetMsgPackServerCodec returns msgpack server codec for connection.
61func GetMsgPackServerCodec(c io.ReadWriteCloser) rpc.ServerCodec {

Callers 15

addBlockFunction · 0.92
addTxFunction · 0.92
updateAccountFunction · 0.92
updateShardChainFunction · 0.92
updateProviderFunction · 0.92
TestTransactionWrapperFunction · 0.92
TestResponse_SignFunction · 0.92

Calls

no outgoing calls