MCPcopy
hub / github.com/tinylib/msgp / Decode

Function Decode

msgp/read.go:112–117  ·  view source on GitHub ↗

Decode decodes 'd' from 'r'.

(r io.Reader, d Decodable)

Source from the content-addressed store, hash-verified

110
111// Decode decodes 'd' from 'r'.
112func Decode(r io.Reader, d Decodable) error {
113 rd := NewReader(r)
114 err := d.DecodeMsg(rd)
115 freeR(rd)
116 return err
117}
118
119// NewReader returns a *Reader that
120// reads from the provided reader. The

Callers 3

TestAllownilFunction · 0.92
Test1EncodeDecodeFunction · 0.92
TestIssue168Function · 0.92

Calls 3

NewReaderFunction · 0.85
freeRFunction · 0.85
DecodeMsgMethod · 0.65

Tested by 3

TestAllownilFunction · 0.74
Test1EncodeDecodeFunction · 0.74
TestIssue168Function · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…