Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
42
func
NewDecoder(r Reader) *Decoder {
43
return
&Decoder{r: r, f: decoderFlags(r)}
44
}
45
46
func
(d *Decoder) Decode(v any) error {
47
t := reflect.TypeOf(v)
Callers
3
TestDecodeEOF
Function · 0.92
benchmarkUnmarshal
Function · 0.92
Unmarshal
Function · 0.70
Calls
1
decoderFlags
Function · 0.85
Tested by
2
TestDecodeEOF
Function · 0.74
benchmarkUnmarshal
Function · 0.74
Used in the wild
real call sites across dependent graphs
searching dependent graphs…