DecodeMsg implements [Decodable]. It sets the value of *Raw to be the next object on the wire.
(f *Reader)
| 108 | // It sets the value of *Raw to be the |
| 109 | // next object on the wire. |
| 110 | func (r *Raw) DecodeMsg(f *Reader) error { |
| 111 | *r = (*r)[:0] |
| 112 | err := appendNext(f, (*[]byte)(r)) |
| 113 | if IsNil(*r) { |
| 114 | *r = (*r)[:0] |
| 115 | } |
| 116 | return err |
| 117 | } |
| 118 | |
| 119 | // Msgsize implements [Sizer]. |
| 120 | func (r Raw) Msgsize() int { |