compressBlockToWriter

private fnCompressedBlock compressBlockToWriter(const(ubyte)[] input, int blockSize100k, uint originalDataCrc, BitWriter * bw)

Compress a block into a provided BitWriter without flushing.

Writes all block header, symbol map, selectors, Huffman tables, and encoded symbol data through the given BitWriter. The caller must flush the writer and consume output separately. Used internally by Bzip2Compressor to maintain a continuous bitstream across blocks and the EOS trailer.

Parameters

inputRLE1-encoded input data.
blockSize100kBlock size multiplier (1-9).
originalDataCrcPre-computed CRC of original (pre-RLE1) data, or 0 to compute.
bwBitWriter to write block data into.

Returns

Compressed block with blockCrc set. data is not populated.