EncodeInt32 encodes an int32 in 5 bytes preserving type of the number.
(n int32)
| 81 | |
| 82 | // EncodeInt32 encodes an int32 in 5 bytes preserving type of the number. |
| 83 | func (e *Encoder) EncodeInt32(n int32) error { |
| 84 | return e.write4(msgpcode.Int32, uint32(n)) |
| 85 | } |
| 86 | |
| 87 | func (e *Encoder) encodeInt32Cond(n int32) error { |
| 88 | if e.flags&useCompactIntsFlag != 0 { |
no test coverage detected