DecodeMessage consumes a length-prefixed message from the buffer. It does not reset m before unmarshaling.
(m Message)
| 262 | // DecodeMessage consumes a length-prefixed message from the buffer. |
| 263 | // It does not reset m before unmarshaling. |
| 264 | func (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 |
nothing calls this directly
no test coverage detected