(v uint32)
| 37 | } |
| 38 | |
| 39 | func (enc *BulkEncoder) WriteUint32(v uint32) { |
| 40 | enc.fill |= uint64(v) << enc.off |
| 41 | enc.off += 32 |
| 42 | if enc.off >= 64 { |
| 43 | enc.off -= 64 |
| 44 | enc.fill = uint64(v) >> (32 - enc.off) |
| 45 | enc.data[enc.at] = enc.fill |
| 46 | enc.at++ |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func (enc *BulkEncoder) Reset() { |
| 51 | enc.fill, enc.off, enc.at = 0, 0, 0 |
no outgoing calls
no test coverage detected