MCPcopy Create free account
hub / github.com/vmihailenco/msgpack / DecodeNil

Method DecodeNil

decode.go:335–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333}
334
335func (d *Decoder) DecodeNil() error {
336 c, err := d.readCode()
337 if err != nil {
338 return err
339 }
340 if c != msgpcode.Nil {
341 return fmt.Errorf("msgpack: invalid code=%x decoding nil", c)
342 }
343 return nil
344}
345
346func (d *Decoder) decodeNilValue(v reflect.Value) error {
347 err := d.DecodeNil()

Callers 2

decodeNilValueMethod · 0.95
ptrValueDecoderFunction · 0.80

Calls 1

readCodeMethod · 0.95

Tested by

no test coverage detected