Exemplo n.º 1
0
	    public static HuffmanPacker Load(BinaryReader reader)
	    {
	        var symbols = HuffmanTable.Load(reader);
	        var len = reader.Read7BitEncodedInt();
	        var offsets = new HuffmanTable[len];
	        for (int i = 0; i < len; i++)
	        {
                offsets[i] = HuffmanTable.Load(reader);
	        }
	        return new HuffmanPacker(symbols, offsets);
	    }
Exemplo n.º 2
0
	    public HuffmanPacker(HuffmanTable symbols, HuffmanTable[] offsets)
		{
			this.symbols = symbols;
			this.offsets = offsets;
		}