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

Method readShort

src/arithmeticdecoder.cpp:292–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292U16 ArithmeticDecoder::readShort()
293{
294 U32 sym = value / (length >>= 16); // decode symbol, change length
295 value -= length * sym; // update interval
296
297 if (length < AC__MinLength) renorm_dec_interval(); // renormalization
298
299 if (sym >= (1u<<16))
300 {
301 throw 4711;
302 }
303
304 return (U16)sym;
305}
306
307U32 ArithmeticDecoder::readInt()
308{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected