MCPcopy
hub / github.com/golang/protobuf / Buffer

Struct Buffer

proto/buffer.go:49–53  ·  view source on GitHub ↗

Buffer is a buffer for encoding and decoding the protobuf wire format. It may be reused between invocations to reduce memory usage.

Source from the content-addressed store, hash-verified

47// Buffer is a buffer for encoding and decoding the protobuf wire format.
48// It may be reused between invocations to reduce memory usage.
49type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected