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

Method DecodeMessage

proto/buffer.go:264–270  ·  proto/buffer.go::Buffer.DecodeMessage

DecodeMessage consumes a length-prefixed message from the buffer. It does not reset m before unmarshaling.

(m Message)

Source from the content-addressed store, hash-verified

262// DecodeMessage consumes a length-prefixed message from the buffer.
263// It does not reset m before unmarshaling.
264func (b *Buffer) DecodeMessage(m Message) error {
265 v, err := b.DecodeRawBytes(false)
266 if err != nil {
267 return err
268 }
269 return UnmarshalMerge(v, m)
270}
271
272// DecodeGroup consumes a message group from the buffer.
273// It assumes that the start group marker has already been consumed and

Callers

nothing calls this directly

Calls 2

DecodeRawBytesMethod · 0.95
UnmarshalMergeFunction · 0.85

Tested by

no test coverage detected