MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / readBitsFromStream

Function readBitsFromStream

src/lodepng.cpp:431–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431static unsigned readBitsFromStream(size_t* bitpointer, const unsigned char* bitstream, size_t nbits)
432{
433 unsigned result = 0, i;
434 for(i = 0; i < nbits; i++)
435 {
436 result += ((unsigned)READBIT(*bitpointer, bitstream)) << i;
437 (*bitpointer)++;
438 }
439 return result;
440}
441#endif /*LODEPNG_COMPILE_DECODER*/
442
443/* ////////////////////////////////////////////////////////////////////////// */

Callers 2

getTreeInflateDynamicFunction · 0.85
inflateHuffmanBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected