DecodeInt64 decodes msgpack int8/16/32/64 and uint8/16/32/64 into Go int64.
()
| 122 | // DecodeInt64 decodes msgpack int8/16/32/64 and uint8/16/32/64 |
| 123 | // into Go int64. |
| 124 | func (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 | |
| 132 | func (d *Decoder) int(c byte) (int64, error) { |
| 133 | if c == msgpcode.Nil { |
no test coverage detected