MCPcopy Index your code
hub / github.com/prometheus/prometheus / Encbuf

Struct Encbuf

tsdb/encoding/encoding.go:33–36  ·  view source on GitHub ↗

Encbuf is a helper type to populate a byte slice with various types.

Source from the content-addressed store, hash-verified

31
32// Encbuf is a helper type to populate a byte slice with various types.
33type Encbuf struct {
34 B []byte
35 C [binary.MaxVarintLen64]byte
36}
37
38func (e *Encbuf) Reset() { e.B = e.B[:0] }
39func (e *Encbuf) Get() []byte { return e.B }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected