(v byte)
| 26 | } |
| 27 | |
| 28 | func (enc *BulkEncoder) WriteByte(v byte) { |
| 29 | enc.fill |= uint64(v) << enc.off |
| 30 | enc.off += 8 |
| 31 | if enc.off >= 64 { |
| 32 | enc.data[enc.at] = enc.fill |
| 33 | enc.at++ |
| 34 | enc.fill = 0 |
| 35 | enc.off = 0 |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func (enc *BulkEncoder) WriteUint32(v uint32) { |
| 40 | enc.fill |= uint64(v) << enc.off |
no outgoing calls
no test coverage detected