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

Method writeByte

src/arithmeticencoder.cpp:275–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void ArithmeticEncoder::writeByte(U8 sym)
276{
277 U32 init_base = base;
278 base += (U32)(sym) * (length >>= 8); // new interval base and length
279
280 if (init_base > base) propagate_carry(); // overflow = carry
281 if (length < AC__MinLength) renorm_enc_interval(); // renormalization
282}
283
284void ArithmeticEncoder::writeShort(U16 sym)
285{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected