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()
176 ALWAYS_INLINE void OrBits(size_t bit_offset, const BitMemoryRegion& src, size_t bit_length) { in OrBits()
224 static int Compare(const BitMemoryRegion& lhs, const BitMemoryRegion& rhs) { in Compare()
258 explicit BitMemoryReader(BitMemoryRegion data) in BitMemoryReader()
267 BitMemoryRegion GetReadRegion() const { return finished_region_; } in GetReadRegion()
271 ALWAYS_INLINE BitMemoryRegion ReadRegion(size_t bit_length) { in ReadRegion()
319 BitMemoryRegion finished_region_;
332 BitMemoryRegion GetWrittenRegion() const { in GetWrittenRegion()
333 return BitMemoryRegion(out_->data(), bit_start_, bit_offset_ - bit_start_); in GetWrittenRegion()
340 ALWAYS_INLINE BitMemoryRegion Allocate(size_t bit_length) { in Allocate()
342 BitMemoryRegion region(out_->data(), bit_offset_, bit_length); in Allocate()
348 ALWAYS_INLINE void WriteRegion(const BitMemoryRegion& region) { in WriteRegion()