Lines Matching refs:BitMemoryRegion

31 class BitMemoryRegion final : public ValueObject {
34 bool operator()(const BitMemoryRegion& lhs, const BitMemoryRegion& rhs) const { in operator()
39 BitMemoryRegion() = default;
40 ALWAYS_INLINE BitMemoryRegion(uint8_t* data, ssize_t bit_start, size_t bit_size) { in BitMemoryRegion() function
46 ALWAYS_INLINE explicit BitMemoryRegion(MemoryRegion region) in BitMemoryRegion() function
47 : BitMemoryRegion(region.begin(), /* bit_start */ 0, region.size_in_bits()) { in BitMemoryRegion()
49 ALWAYS_INLINE BitMemoryRegion(MemoryRegion region, size_t bit_offset, size_t bit_length) in BitMemoryRegion() function
50 : BitMemoryRegion(region) { in BitMemoryRegion()
69 ALWAYS_INLINE BitMemoryRegion Subregion(size_t bit_offset, size_t bit_length) const { in Subregion()
72 BitMemoryRegion result = *this; in Subregion()
78 ALWAYS_INLINE BitMemoryRegion Subregion(size_t bit_offset) const { in Subregion()
80 BitMemoryRegion result = *this; in Subregion()
163 ALWAYS_INLINE void StoreBits(size_t bit_offset, const BitMemoryRegion& src, size_t bit_length) { in StoreBits()
189 static int Compare(const BitMemoryRegion& lhs, const BitMemoryRegion& rhs) { in Compare()
223 explicit BitMemoryReader(BitMemoryRegion data) in BitMemoryReader()
232 BitMemoryRegion GetReadRegion() const { return finished_region_; } in GetReadRegion()
236 ALWAYS_INLINE BitMemoryRegion ReadRegion(size_t bit_length) { in ReadRegion()
284 BitMemoryRegion finished_region_;
297 BitMemoryRegion GetWrittenRegion() const { in GetWrittenRegion()
298 return BitMemoryRegion(out_->data(), bit_start_, bit_offset_ - bit_start_); in GetWrittenRegion()
305 ALWAYS_INLINE BitMemoryRegion Allocate(size_t bit_length) { in Allocate()
307 BitMemoryRegion region(out_->data(), bit_offset_, bit_length); in Allocate()
313 ALWAYS_INLINE void WriteRegion(const BitMemoryRegion& region) { in WriteRegion()