MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / Unmarshal

Method Unmarshal

pkg/encoding/json_encoding.go:120–127  ·  view source on GitHub ↗

Unmarshal deserialization

(data []byte, value interface{})

Source from the content-addressed store, hash-verified

118
119// Unmarshal deserialization
120func (s JSONSnappyEncoding) Unmarshal(data []byte, value interface{}) error {
121 b, err := snappy.Decode(nil, data)
122 if err != nil {
123 return err
124 }
125
126 return json.Unmarshal(b, value)
127}

Callers 1

TestEncodingErrorFunction · 0.95

Calls 1

UnmarshalMethod · 0.65

Tested by 1

TestEncodingErrorFunction · 0.76