SCI.js
    Preparing search index...

    Interface SimpleLzwDecodeOptions

    Basic options for LZW decoding.

    By default, least-significant bit ordering is used. You can change the encoded byte ordering of the decoder with the options parameter. To use least-significant bit ordering:

    const bytes = Lzw.unpack(encodedBytes, { order: 'msb' });
    

    The default code-width it uses is 8, this can also be adjusted. To use an ASCII 7-bit code width:

    const bytes = Lzw.unpack(encodedBytes, { literalWidth: 7 });
    
    interface SimpleLzwDecodeOptions {
        literalWidth?: number;
        order?: "msb" | "lsb";
    }
    Index

    Properties

    literalWidth?: number

    Specify an explicit initial code-width for the LZW algorithm.

    8
    
    order?: "msb" | "lsb"

    Select the packing bit-ordering.

    'lsb'