EncodeUint32 encodes an uint16 in 5 bytes preserving type of the number.
(n uint32)
| 33 | |
| 34 | // EncodeUint32 encodes an uint16 in 5 bytes preserving type of the number. |
| 35 | func (e *Encoder) EncodeUint32(n uint32) error { |
| 36 | return e.write4(msgpcode.Uint32, n) |
| 37 | } |
| 38 | |
| 39 | func (e *Encoder) encodeUint32Cond(n uint32) error { |
| 40 | if e.flags&useCompactIntsFlag != 0 { |
no test coverage detected