| 23 | }; |
| 24 | |
| 25 | inline bool LowFirstBitReader::FillBuffer(unsigned int length) |
| 26 | { |
| 27 | while (m_bitsBuffered < length) |
| 28 | { |
| 29 | byte b; |
| 30 | if (!m_store.Get(b)) |
| 31 | return false; |
| 32 | m_buffer |= (unsigned long)b << m_bitsBuffered; |
| 33 | m_bitsBuffered += 8; |
| 34 | } |
| 35 | CRYPTOPP_ASSERT(m_bitsBuffered <= sizeof(unsigned long)*8); |
| 36 | return true; |
| 37 | } |
| 38 | |
| 39 | inline unsigned long LowFirstBitReader::PeekBits(unsigned int length) |
| 40 | { |
no test coverage detected