@kayahr/wastelib
    Preparing search index...

    Function decodeHuffman

    • Decodes huffman encoded data read from the given reader and returns the decoded data.

      Parameters

      • reader: BinaryReader

        The reader to read the encoded data from. The current position of the reader must point to the beginning of the huffman tree. After decoding the reader position is set to the next full byte after the encoded data.

      • size: number

        The number of bytes to decode. Defines the size of the returned array.

      Returns Uint8Array

      The decoded data.