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

Function readBitFromStream

samples/shared/lodepng.cpp:441–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439#define READBIT(bitpointer, bitstream) ((bitstream[bitpointer >> 3] >> (bitpointer & 0x7)) & (unsigned char)1)
440
441static unsigned char readBitFromStream(size_t* bitpointer, const unsigned char* bitstream)
442{
443 unsigned char result = (unsigned char)(READBIT(*bitpointer, bitstream));
444 (*bitpointer)++;
445 return result;
446}
447
448static unsigned readBitsFromStream(size_t* bitpointer, const unsigned char* bitstream, size_t nbits)
449{

Callers 1

lodepng_inflatevFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected