MCPcopy
hub / github.com/prometheus/prometheus / PutVarint64

Method PutVarint64

tsdb/encoding/encoding.go:70–73  ·  view source on GitHub ↗
(x int64)

Source from the content-addressed store, hash-verified

68}
69
70func (e *Encbuf) PutVarint64(x int64) {
71 n := binary.PutVarint(e.C[:], x)
72 e.B = append(e.B, e.C[:n]...)
73}
74
75// PutUvarintStr writes a string to the buffer prefixed by its varint length (in bytes!).
76func (e *Encbuf) PutUvarintStr(s string) {

Callers 15

samplesV1Method · 0.95
samplesV2Method · 0.95
TombstonesMethod · 0.95
histogramSamplesV1Method · 0.95
histogramSamplesV2Method · 0.95
EncodeFunction · 0.95
writeSTMarkerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected