MCPcopy Create free account
hub / github.com/DFHack/dfhack / readBits

Function readBits

depends/lodepng/lodepng.cpp:580–584  ·  view source on GitHub ↗

Must have enough bits available with ensureBits */

Source from the content-addressed store, hash-verified

578
579/* Must have enough bits available with ensureBits */
580static unsigned readBits(LodePNGBitReader* reader, size_t nbits) {
581 unsigned result = peekBits(reader, nbits);
582 advanceBits(reader, nbits);
583 return result;
584}
585
586/* Public for testing only. steps and result must have numsteps values. */
587unsigned lode_png_test_bitreader(const unsigned char* data, size_t size,

Callers 4

lode_png_test_bitreaderFunction · 0.85
getTreeInflateDynamicFunction · 0.85
inflateHuffmanBlockFunction · 0.85
lodepng_inflatevFunction · 0.85

Calls 2

peekBitsFunction · 0.85
advanceBitsFunction · 0.85

Tested by

no test coverage detected