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

Method readBits

unused/rangedecoder.cpp:169–181  ·  view source on GitHub ↗

Decode bits without modelling */

Source from the content-addressed store, hash-verified

167
168/* Decode bits without modelling */
169U32 RangeDecoder::readBits(U32 bits)
170{
171 U32 tmp;
172 if (bits > 21) // 22 bits
173 {
174 tmp = readShort();
175 U32 tmp1 = readBits(bits - 16) << 16;
176 return (tmp1|tmp);
177 }
178 tmp = culshift(bits);
179 update(1, tmp, 1u<<bits);
180 return tmp;
181}
182
183/* Decode a byte without modelling */
184U8 RangeDecoder::readByte()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected