45 if (bitCount <= m_bitsAvail) {
46 m_bitsAvail -=
static_cast<std::uint8_t
>(bitCount);
48 if ((m_buffer += 1 + (bitCount -= m_bitsAvail) / 8) >= m_end) {
49 throw ios_base::failure(
"end of buffer exceeded");
51 m_bitsAvail = 8 - (bitCount % 8);