MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / DecodeInt64

Method DecodeInt64

decode_number.go:124–130  ·  view source on GitHub ↗

DecodeInt64 decodes msgpack int8/16/32/64 and uint8/16/32/64 into Go int64.

()

Source from the content-addressed store, hash-verified

122// DecodeInt64 decodes msgpack int8/16/32/64 and uint8/16/32/64
123// into Go int64.
124func (d *Decoder) DecodeInt64() (int64, error) {
125 c, err := d.readCode()
126 if err != nil {
127 return 0, err
128 }
129 return d.int(c)
130}
131
132func (d *Decoder) int(c byte) (int64, error) {
133 if c == msgpcode.Nil {

Callers 8

DecodeIntMethod · 0.95
DecodeInt8Method · 0.95
DecodeInt16Method · 0.95
DecodeInt32Method · 0.95
DecodeTimeMethod · 0.95
DecodeMethod · 0.95
DecodeDurationMethod · 0.95
decodeInt64ValueFunction · 0.80

Calls 2

readCodeMethod · 0.95
intMethod · 0.95

Tested by

no test coverage detected