File: buffer.go

package info (click to toggle)
golang-github-canonical-go-dqlite 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 712 kB
  • sloc: sh: 380; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 183 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
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
}