mirror of https://github.com/k3s-io/k3s
12 lines
183 B
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
|
||
|
}
|