Lempel-Ziv-Welch decompression algorithm used in Sierra On-line SCI-engine games.
import { Lzw } from '@4bitlabs/codecs';const encodedBytes = Uint8Array.of(/* encoded data */);const bytes = Lzw.unpack(encodedBytes); Copy
import { Lzw } from '@4bitlabs/codecs';const encodedBytes = Uint8Array.of(/* encoded data */);const bytes = Lzw.unpack(encodedBytes);
The compressed bytes.
Decompressed payload.
Lempel-Ziv-Welch decompression algorithm used in Sierra On-line SCI-engine games.
See
Example: Basic decoding, using default options.