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

Method readByte

src/arithmeticdecoder.cpp:277–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277U8 ArithmeticDecoder::readByte()
278{
279 U32 sym = value / (length >>= 8); // decode symbol, change length
280 value -= length * sym; // update interval
281
282 if (length < AC__MinLength) renorm_dec_interval(); // renormalization
283
284 if (sym >= (1u<<8))
285 {
286 throw 4711;
287 }
288
289 return (U8)sym;
290}
291
292U16 ArithmeticDecoder::readShort()
293{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected