We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BigEndianInputBitStream::bits_until_next_byte_boundary()
1 parent 9ae17e3 commit cbfea68Copy full SHA for cbfea68
AK/BitStream.h
@@ -111,6 +111,7 @@ class BigEndianInputBitStream : public Stream {
111
112
/// Whether we are (accidentally or intentionally) at a byte boundary right now.
113
ALWAYS_INLINE bool is_aligned_to_byte_boundary() const { return m_bit_offset % 8 == 0; }
114
+ ALWAYS_INLINE u8 bits_until_next_byte_boundary() const { return m_bit_offset % 8 == 0 ? 0 : 8 - m_bit_offset; }
115
116
private:
117
Optional<u8> m_current_byte;
0 commit comments