Huffman decompression algorithm used in Sierra On-line SCI-engine games.
import { Huffman } from '@4bitlabs/codecs';const encodedBytes = Uint8Array.of(/* encoded data */);const bytes = Huffman.unpack(encodedBytes); Copy
import { Huffman } from '@4bitlabs/codecs';const encodedBytes = Uint8Array.of(/* encoded data */);const bytes = Huffman.unpack(encodedBytes);
The compressed bytes.
Decompressed payload.
Huffman decompression algorithm used in Sierra On-line SCI-engine games.
Example