MCPcopy Create free account
hub / github.com/segmentio/encoding / NewDecoder

Function NewDecoder

thrift/decode.go:42–44  ·  view source on GitHub ↗
(r Reader)

Source from the content-addressed store, hash-verified

40}
41
42func NewDecoder(r Reader) *Decoder {
43 return &Decoder{r: r, f: decoderFlags(r)}
44}
45
46func (d *Decoder) Decode(v any) error {
47 t := reflect.TypeOf(v)

Callers 3

TestDecodeEOFFunction · 0.92
benchmarkUnmarshalFunction · 0.92
UnmarshalFunction · 0.70

Calls 1

decoderFlagsFunction · 0.85

Tested by 2

TestDecodeEOFFunction · 0.74
benchmarkUnmarshalFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…