MCPcopy Index your code
hub / github.com/tinylib/msgp / DecodeMsg

Method DecodeMsg

msgp/read_bytes.go:110–117  ·  view source on GitHub ↗

DecodeMsg implements [Decodable]. It sets the value of *Raw to be the next object on the wire.

(f *Reader)

Source from the content-addressed store, hash-verified

108// It sets the value of *Raw to be the
109// next object on the wire.
110func (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].
120func (r Raw) Msgsize() int {

Callers 2

TestRawFunction · 0.95
TestNullRawFunction · 0.95

Calls 2

appendNextFunction · 0.85
IsNilFunction · 0.85

Tested by 2

TestRawFunction · 0.76
TestNullRawFunction · 0.76