EncodeUint16 encodes an uint16 in 3 bytes preserving type of the number.
(n uint16)
| 21 | |
| 22 | // EncodeUint16 encodes an uint16 in 3 bytes preserving type of the number. |
| 23 | func (e *Encoder) EncodeUint16(n uint16) error { |
| 24 | return e.write2(msgpcode.Uint16, n) |
| 25 | } |
| 26 | |
| 27 | func (e *Encoder) encodeUint16Cond(n uint16) error { |
| 28 | if e.flags&useCompactIntsFlag != 0 { |
no test coverage detected