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

12 lines
183 B
Go
Raw Normal View History

2019-11-08 21:45:10 +00:00
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
}