k3s/vendor/github.com/canonical/go-dqlite/internal/protocol/buffer.go
2019-11-10 04:05:59 +00:00

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
}