setSize will store the compressed size of a block.
(v uint32)
| 120 | |
| 121 | // setSize will store the compressed size of a block. |
| 122 | func (h *blockHeader) setSize(v uint32) { |
| 123 | const mask = 7 |
| 124 | *h = (*h)&mask | blockHeader(v<<3) |
| 125 | } |
| 126 | |
| 127 | // setType sets the block type. |
| 128 | func (h *blockHeader) setType(t blockType) { |
no test coverage detected