MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / readBitsFromStream

Function readBitsFromStream

samples/shared/lodepng.cpp:448–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448static unsigned readBitsFromStream(size_t* bitpointer, const unsigned char* bitstream, size_t nbits)
449{
450 unsigned result = 0, i;
451 for(i = 0; i < nbits; i++)
452 {
453 result += ((unsigned)READBIT(*bitpointer, bitstream)) << i;
454 (*bitpointer)++;
455 }
456 return result;
457}
458#endif /*LODEPNG_COMPILE_DECODER*/
459
460/* ////////////////////////////////////////////////////////////////////////// */

Callers 2

getTreeInflateDynamicFunction · 0.85
inflateHuffmanBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected