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

Method Unmarshal

proto/buffer.go:118–122  ·  proto/buffer.go::Buffer.Unmarshal

Unmarshal parses the wire-format message in the buffer and places the decoded results in m. It does not reset m before unmarshaling.

(m Message)

Source from the content-addressed store, hash-verified

116// places the decoded results in m.
117// It does not reset m before unmarshaling.
118func (b *Buffer) Unmarshal(m Message) error {
119 err := UnmarshalMerge(b.Unread(), m)
120 b.idx = len(b.buf)
121 return err
122}
123
124type unknownFields struct{ XXX_unrecognized protoimpl.UnknownFields }
125

Callers

nothing calls this directly

Calls 2

UnreadMethod · 0.95
UnmarshalMergeFunction · 0.85

Tested by

no test coverage detected