EncodeInt16 encodes an int16 in 3 bytes preserving type of the number.
(n int16)
| 69 | |
| 70 | // EncodeInt16 encodes an int16 in 3 bytes preserving type of the number. |
| 71 | func (e *Encoder) EncodeInt16(n int16) error { |
| 72 | return e.write2(msgpcode.Int16, uint16(n)) |
| 73 | } |
| 74 | |
| 75 | func (e *Encoder) encodeInt16Cond(n int16) error { |
| 76 | if e.flags&useCompactIntsFlag != 0 { |
no test coverage detected