Lines Matching refs:bitp
294 unsigned long readBitFromStream(size_t& bitp, const unsigned char* bits) in readBitFromStream()
296 unsigned long result = (bits[bitp >> 3] >> (bitp & 0x7)) & 1; in readBitFromStream()
297 bitp++; in readBitFromStream()
301 unsigned long readBitsFromStream(size_t& bitp, const unsigned char* bits, size_t nbits) in readBitsFromStream()
304 for(size_t i = 0; i < nbits; i++) result += (readBitFromStream(bitp, bits)) << i; in readBitsFromStream()
623 unsigned long readBitFromReversedStream(size_t& bitp, const unsigned char* bits) in readBitFromReversedStream()
625 unsigned long result = (bits[bitp >> 3] >> (7 - (bitp & 0x7))) & 1; in readBitFromReversedStream()
626 bitp++; in readBitFromReversedStream()
630 …unsigned long readBitsFromReversedStream(size_t& bitp, const unsigned char* bits, unsigned long nb… in readBitsFromReversedStream()
633 …for(size_t i = nbits - 1; i < nbits; i--) result += ((readBitFromReversedStream(bitp, bits)) << i); in readBitsFromReversedStream()
637 void setBitOfReversedStream(size_t& bitp, unsigned char* bits, unsigned long bit) in setBitOfReversedStream()
639 bits[bitp >> 3] |= (bit << (7 - (bitp & 0x7))); bitp++; in setBitOfReversedStream()