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)
| 116 | // places the decoded results in m. |
| 117 | // It does not reset m before unmarshaling. |
| 118 | func (b *Buffer) Unmarshal(m Message) error { |
| 119 | err := UnmarshalMerge(b.Unread(), m) |
| 120 | b.idx = len(b.buf) |
| 121 | return err |
| 122 | } |
| 123 | |
| 124 | type unknownFields struct{ XXX_unrecognized protoimpl.UnknownFields } |
| 125 |
nothing calls this directly
no test coverage detected