#include "puffin/src/bit_reader.h"
#include <cstring>
#include "puffin/src/logging.h"
namespace puffin {
bool BufferBitReader::CacheBits(size_t nbits) { … }
uint32_t BufferBitReader::ReadBits(size_t nbits) { … }
void BufferBitReader::DropBits(size_t nbits) { … }
uint8_t BufferBitReader::ReadBoundaryBits() { … }
size_t BufferBitReader::SkipBoundaryBits() { … }
bool BufferBitReader::GetByteReaderFn(
size_t length, std::function<bool(uint8_t*, size_t)>* read_fn) { … }
size_t BufferBitReader::Offset() const { … }
uint64_t BufferBitReader::OffsetInBits() const { … }
uint64_t BufferBitReader::BitsRemaining() const { … }
}