FluxJpeg.Core.JpegHuffmanTable.JpegHuffmanTable C# (CSharp) Method

JpegHuffmanTable() public method

Construct and initialize a Huffman table. Copies are created of the array arguments. lengths[index] stores the number of Huffman values with Huffman codes of length index + 1. The values array stores the Huffman values in order of increasing code length. throws ArgumentException if either parameter is null, if lengths.Length > 16 or values.Length > 256, if any value in length or values is negative, or if the parameters do not describe a valid Huffman table
public JpegHuffmanTable ( short lengths, short values ) : System
lengths short an array of Huffman code lengths
values short a sorted array of Huffman values
return System
        public JpegHuffmanTable(short[] lengths, short[] values)
            // Create copies of the lengths and values arguments.
            : this(checkLengths(lengths), checkValues(values, lengths), true)
        {
        }

Same methods

JpegHuffmanTable::JpegHuffmanTable ( short lengths, short values, bool copy ) : System