EncodeInt8 encodes an int8 in 2 bytes preserving type of the number.
(n int8)
| 57 | |
| 58 | // EncodeInt8 encodes an int8 in 2 bytes preserving type of the number. |
| 59 | func (e *Encoder) EncodeInt8(n int8) error { |
| 60 | return e.write1(msgpcode.Int8, uint8(n)) |
| 61 | } |
| 62 | |
| 63 | func (e *Encoder) encodeInt8Cond(n int8) error { |
| 64 | if e.flags&useCompactIntsFlag != 0 { |
no test coverage detected