Buffer is a buffer for encoding and decoding the protobuf wire format. It may be reused between invocations to reduce memory usage.
| 47 | // Buffer is a buffer for encoding and decoding the protobuf wire format. |
| 48 | // It may be reused between invocations to reduce memory usage. |
| 49 | type Buffer struct { |
| 50 | buf []byte |
| 51 | idx int |
| 52 | deterministic bool |
| 53 | } |
| 54 | |
| 55 | // NewBuffer allocates a new Buffer initialized with buf, |
| 56 | // where the contents of buf are considered the unread portion of the buffer. |
nothing calls this directly
no outgoing calls
no test coverage detected