MCPcopy Create free account
hub / github.com/LASzip/LASzip / init

Method init

src/arithmeticdecoder.cpp:110–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110BOOL ArithmeticDecoder::init(ByteStreamIn* instream, BOOL really_init)
111{
112 if (instream == 0) return FALSE;
113 this->instream = instream;
114 length = AC__MaxLength;
115 if (really_init)
116 {
117 value = (instream->getByte() << 24);
118 value |= (instream->getByte() << 16);
119 value |= (instream->getByte() << 8);
120 value |= (instream->getByte());
121 }
122 return TRUE;
123}
124
125void ArithmeticDecoder::done()
126{

Callers 2

initBitModelMethod · 0.45
initSymbolModelMethod · 0.45

Calls 1

getByteMethod · 0.45

Tested by

no test coverage detected