MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / InitMessagePack

Function InitMessagePack

lib/encoding/messagepack.go:36–40  ·  view source on GitHub ↗

InitMessagePack function initializes MessagePackCodec struct and returns it.

()

Source from the content-addressed store, hash-verified

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

Callers 4

TestInitMessagePackFunction · 0.85
TestEncodeFunction · 0.85

Calls 1

NewMsgPackHandleFunction · 0.85

Tested by 4

TestInitMessagePackFunction · 0.68
TestEncodeFunction · 0.68