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