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

Method Decode

lib/encoding/messagepack.go:102–108  ·  view source on GitHub ↗

Decode on MessagePackCodec type, using a byte slice as input.

(in []byte, out interface{})

Source from the content-addressed store, hash-verified

100
101// Decode on MessagePackCodec type, using a byte slice as input.
102func (m *MessagePackCodec) Decode(in []byte, out interface{}) error {
103 // Create new decoder using the byte slice and MessagePack handle.
104 dec := codec.NewDecoderBytes(in, m.MsgPack)
105
106 // Attempt to decode the byte slice into the desired output structure.
107 return dec.Decode(out)
108}
109
110// AddExtension method allows for setting custom encoders/decoders for specific reflect.Types.
111func (m *MessagePackCodec) AddExtension(

Callers 13

PutHandlerMethod · 0.45
PostHandlerMethod · 0.45
DecodeMethod · 0.45
DecodeMessagePackFunction · 0.45
TestAddExtensionFunction · 0.45
getSetFromDBMethod · 0.45
FromBytesMethod · 0.45
getZSetFromDBMethod · 0.45
UnmarshalBinaryMethod · 0.45
UnmarshalBinaryMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestAddExtensionFunction · 0.36