Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/segmentio/encoding
/ writeVarint
Method
writeVarint
thrift/compact.go:343–346 ·
view source on GitHub ↗
(v int64)
Source
from the content-addressed store, hash-verified
341
}
342
343
func
(w *compactWriter) writeVarint(v int64) error {
344
n := binary.PutVarint(w.varint[:], v)
345
return
w.binary.write(w.varint[:n])
346
}
Callers
3
WriteInt16
Method · 0.95
WriteInt32
Method · 0.95
WriteInt64
Method · 0.95
Calls
1
write
Method · 0.80
Tested by
no test coverage detected