EncodeInt64 encodes an int64 in 9 bytes preserving type of the number.
(n int64)
| 93 | |
| 94 | // EncodeInt64 encodes an int64 in 9 bytes preserving type of the number. |
| 95 | func (e *Encoder) EncodeInt64(n int64) error { |
| 96 | return e.write8(msgpcode.Int64, uint64(n)) |
| 97 | } |
| 98 | |
| 99 | func (e *Encoder) encodeInt64Cond(n int64) error { |
| 100 | if e.flags&useCompactIntsFlag != 0 { |
no test coverage detected