k3s/vendor/github.com/canonical/go-dqlite/internal/protocol/buffer.go

12 lines
183 B
Go

package protocol
// Buffer for reading responses or writing requests.
type buffer struct {
Bytes []byte
Offset int
}
func (b *buffer) Advance(amount int) {
b.Offset += amount
}