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

Method EncodeRawBytes

proto/buffer.go:168–171  ·  view source on GitHub ↗

EncodeRawBytes appends a length-prefixed raw bytes to the buffer.

(v []byte)

Source from the content-addressed store, hash-verified

166
167// EncodeRawBytes appends a length-prefixed raw bytes to the buffer.
168func (b *Buffer) EncodeRawBytes(v []byte) error {
169 b.buf = protowire.AppendBytes(b.buf, v)
170 return nil
171}
172
173// EncodeStringBytes appends a length-prefixed raw bytes to the buffer.
174// It does not validate whether v contains valid UTF-8.

Callers 2

TestBytesPrimitivesFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestBytesPrimitivesFunction · 0.64