diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-14 20:25:38 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-14 20:25:38 +0000 |
commit | d266dd12b9c9fa6c691a43fef3b63e37bd649dc6 (patch) | |
tree | 776dbad40268d523cb4ec094b758bd5521cd1dc6 /pkg/p9/buffer.go | |
parent | 6f7ed62b42f4a4fa07c97adb2cdd916a4616c959 (diff) | |
parent | 50c493193b72997a6b09f353fd9217349941c494 (diff) |
Merge release-20200211.0-19-g50c4931 (automated)
Diffstat (limited to 'pkg/p9/buffer.go')
-rw-r--r-- | pkg/p9/buffer.go | 10 |
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. |