mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-13 12:11:38 -06:00
4.20
This commit is contained in:
committed by
Kornel Lesiński
parent
8c1b5c7b7e
commit
3c510ba80b
@@ -1,7 +1,5 @@
|
||||
// ImplodeHuffmanDecoder.h
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef __IMPLODE_HUFFMAN_DECODER_H
|
||||
#define __IMPLODE_HUFFMAN_DECODER_H
|
||||
|
||||
@@ -19,16 +17,16 @@ typedef NStream::NLSBF::CDecoder<CInBuffer> CInBit;
|
||||
|
||||
class CDecoder
|
||||
{
|
||||
UINT32 m_Limitits[kNumBitsInLongestCode + 2]; // m_Limitits[i] = value limit for symbols with length = i
|
||||
UINT32 m_Positions[kNumBitsInLongestCode + 2]; // m_Positions[i] = index in m_Symbols[] of first symbol with length = i
|
||||
UINT32 m_NumSymbols; // number of symbols in m_Symbols
|
||||
UINT32 *m_Symbols; // symbols: at first with len=1 then 2, ... 15.
|
||||
UInt32 m_Limitits[kNumBitsInLongestCode + 2]; // m_Limitits[i] = value limit for symbols with length = i
|
||||
UInt32 m_Positions[kNumBitsInLongestCode + 2]; // m_Positions[i] = index in m_Symbols[] of first symbol with length = i
|
||||
UInt32 m_NumSymbols; // number of symbols in m_Symbols
|
||||
UInt32 *m_Symbols; // symbols: at first with len=1 then 2, ... 15.
|
||||
public:
|
||||
CDecoder(UINT32 numSymbols);
|
||||
CDecoder(UInt32 numSymbols);
|
||||
~CDecoder();
|
||||
|
||||
void SetCodeLengths(const BYTE *codeLengths);
|
||||
UINT32 DecodeSymbol(CInBit *inStream);
|
||||
void SetCodeLengths(const Byte *codeLengths);
|
||||
UInt32 DecodeSymbol(CInBit *inStream);
|
||||
};
|
||||
|
||||
}}}
|
||||
|
||||
Reference in New Issue
Block a user