(n uint8)
| 13 | } |
| 14 | |
| 15 | func (e *Encoder) encodeUint8Cond(n uint8) error { |
| 16 | if e.flags&useCompactIntsFlag != 0 { |
| 17 | return e.EncodeUint(uint64(n)) |
| 18 | } |
| 19 | return e.EncodeUint8(n) |
| 20 | } |
| 21 | |
| 22 | // EncodeUint16 encodes an uint16 in 3 bytes preserving type of the number. |
| 23 | func (e *Encoder) EncodeUint16(n uint16) error { |
no test coverage detected