MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / InitDecoder

Method InitDecoder

Libraries/unrar/coder.cpp:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9void RangeCoder::InitDecoder(Unpack *UnpackRead)
10{
11 RangeCoder::UnpackRead=UnpackRead;
12
13 low=code=0;
14 range=uint(-1);
15 for (int i=0;i < 4;i++)
16 code=(code << 8) | GetChar();
17}
18
19
20// (int) cast before "low" added only to suppress compiler warnings.

Callers 1

DecodeInitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected