summaryrefslogtreecommitdiffhomepage
path: root/pkg/p9/buffer.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-14 12:22:25 -0800
committergVisor bot <gvisor-bot@google.com>2020-02-14 12:23:10 -0800
commit50c493193b72997a6b09f353fd9217349941c494 (patch)
tree57950ebc829aa850b49e7096bca405df7b3e1540 /pkg/p9/buffer.go
parent3c26f5ecb0087337b1f194b6d429ce68f3af70eb (diff)
Un-export p9 message encode/decode functions.
These are not used outside of the p9 package. PiperOrigin-RevId: 295200052
Diffstat (limited to 'pkg/p9/buffer.go')
-rw-r--r--pkg/p9/buffer.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/p9/buffer.go b/pkg/p9/buffer.go
index 249536d8a..6a4951821 100644
--- a/pkg/p9/buffer.go
+++ b/pkg/p9/buffer.go
@@ -20,16 +20,16 @@ import (
// encoder is used for messages and 9P primitives.
type encoder interface {
- // Decode decodes from the given buffer. Decode may be called more than once
+ // decode decodes from the given buffer. decode may be called more than once
// to reuse the instance. It must clear any previous state.
//
// This may not fail, exhaustion will be recorded in the buffer.
- Decode(b *buffer)
+ decode(b *buffer)
- // Encode encodes to the given buffer.
+ // encode encodes to the given buffer.
//
// This may not fail.
- Encode(b *buffer)
+ encode(b *buffer)
}
// order is the byte order used for encoding.
@@ -39,7 +39,7 @@ var order = binary.LittleEndian
//
// This is passed to the encoder methods.
type buffer struct {
- // data is the underlying data. This may grow during Encode.
+ // data is the underlying data. This may grow during encode.
data []byte
// overflow indicates whether an overflow has occurred.