• Home
  • Raw
  • Download

Lines Matching refs:BitMemoryRegion

29 class BitMemoryRegion final : public ValueObject {
32 bool operator()(const BitMemoryRegion& lhs, const BitMemoryRegion& rhs) const { in operator()
37 BitMemoryRegion() = default;
38 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()
155 ALWAYS_INLINE void StoreBits(size_t bit_offset, const BitMemoryRegion& src, size_t bit_length) { in StoreBits()
181 static int Compare(const BitMemoryRegion& lhs, const BitMemoryRegion& rhs) { in Compare()
216 explicit BitMemoryReader(BitMemoryRegion data) in BitMemoryReader()
225 BitMemoryRegion GetReadRegion() const { return finished_region_; } in GetReadRegion()
229 ALWAYS_INLINE BitMemoryRegion ReadRegion(size_t bit_length) { in ReadRegion()
258 BitMemoryRegion finished_region_;
271 BitMemoryRegion GetWrittenRegion() const { in GetWrittenRegion()
272 return BitMemoryRegion(out_->data(), bit_start_, bit_offset_ - bit_start_); in GetWrittenRegion()
279 ALWAYS_INLINE BitMemoryRegion Allocate(size_t bit_length) { in Allocate()
281 BitMemoryRegion region(out_->data(), bit_offset_, bit_length); in Allocate()
287 ALWAYS_INLINE void WriteRegion(const BitMemoryRegion& region) { in WriteRegion()