Orion
high-rate readout
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
itk::itkpix::endec::codec::BitStreamReader< Buffer > Struct Template Reference

Public Types

using value_type = uint64_t
 
using result_type = std::pair< bool, value_type >
 

Public Member Functions

 BitStreamReader (const BitStreamReader &other)
 
 BitStreamReader (const std::span< const uint64_t > data, std::size_t offset)
 
uint64_t first_word () const
 
std::size_t left () const
 
std::size_t index () const
 
bool set (std::size_t N)
 
bool advance (std::size_t const N)
 
template<bool Advance>
result_type _fetch (std::size_t const N)
 
result_type prefetch (const std::size_t sz)
 
result_type fetch (const std::size_t sz)
 

Public Attributes

std::span< const uint64_t > data
 
const std::size_t size
 
const std::size_t Offset
 
std::size_t _index {Offset}
 
const std::size_t nBitsInWord = nBits - Offset
 

Static Public Attributes

static constexpr std::size_t nBits = 64
 

The documentation for this struct was generated from the following file: