| 6 | #include "BaseThreadDecoderTest.h" |
| 7 | |
| 8 | static int32_t readBit (uint8_t* pBufPtr, int32_t& curBit) { |
| 9 | int nIndex = curBit / 8; |
| 10 | int nOffset = curBit % 8 + 1; |
| 11 | |
| 12 | curBit++; |
| 13 | return (pBufPtr[nIndex] >> (8 - nOffset)) & 0x01; |
| 14 | } |
| 15 | |
| 16 | static int32_t readBits (uint8_t* pBufPtr, int32_t& n, int32_t& curBit) { |
| 17 | int r = 0; |