deflateBlockFixedToBits

fnvoid deflateBlockFixedToBits(DeflateState state, const(ubyte)[] input, bool last) nothrow @safe

Compress a block of data using fixed Huffman codes.

Parameters

stateDeflate state.
inputInput data.
lastIs this the last block?

Returns

Compressed data.

Encode a block using fixed Huffman codes directly into the state's bit buffer. This writes bits without byte-alignment, allowing proper block concatenation.

Params: state = Deflate state with bit buffer. input = Input data to compress. last = Is this the last block?