Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/segmentio/encoding
/ ReadLength
Method
ReadLength
thrift/compact.go:83–86 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
81
}
82
83
func
(r *compactReader) ReadLength() (int, error) {
84
n, err := r.readUvarint(
"length"
, math.MaxInt32)
85
return
int(n), err
86
}
87
88
func
(r *compactReader) ReadMessage() (Message, error) {
89
m := Message{}
Callers
1
ReadBytes
Method · 0.95
Calls
1
readUvarint
Method · 0.95
Tested by
no test coverage detected