MCPcopy
hub / github.com/tinylib/msgp / DecodeMsg

Method DecodeMsg

_generated/omitzero_ext.go:79–90  ·  view source on GitHub ↗

DecodeMsg implements msgp.Decodable

(dc *msgp.Reader)

Source from the content-addressed store, hash-verified

77
78// DecodeMsg implements msgp.Decodable
79func (o *OmitZeroExtPtr) DecodeMsg(dc *msgp.Reader) (err error) {
80 if dc.IsNil() {
81 err = dc.ReadNil()
82 if err != nil {
83 return
84 }
85 o.a = 0
86 return
87 }
88 o.a, err = dc.ReadInt()
89 return err
90}
91
92// MarshalMsg implements msgp.Marshaler
93func (o *OmitZeroExtPtr) MarshalMsg(b []byte) (ret []byte, err error) {

Callers

nothing calls this directly

Calls 3

IsNilMethod · 0.80
ReadNilMethod · 0.80
ReadIntMethod · 0.80

Tested by

no test coverage detected