mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
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
|
||
|
}
|