MCPcopy 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
343func (w *compactWriter) writeVarint(v int64) error {
344 n := binary.PutVarint(w.varint[:], v)
345 return w.binary.write(w.varint[:n])
346}

Callers 3

WriteInt16Method · 0.95
WriteInt32Method · 0.95
WriteInt64Method · 0.95

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected