Searched refs:write_ptr_ (Results 1 – 2 of 2) sorted by relevance
56 if (write_ptr_ >= cur_range_.end) in WriteByte()58 *write_ptr_++ = value; in WriteByte()67 uint8_t* const end = write_ptr_ + size; in WriteBytesUnsafe()69 memcpy(write_ptr_, src, size); in WriteBytesUnsafe()70 write_ptr_ = end; in WriteBytesUnsafe()74 uint8_t* const end = write_ptr_ + size; in WriteBytes()91 uint8_t* begin = write_ptr_; in ReserveBytesUnsafe()92 write_ptr_ += size; in ReserveBytesUnsafe()93 assert(write_ptr_ <= cur_range_.end); in ReserveBytesUnsafe()104 return static_cast<size_t>(cur_range_.end - write_ptr_); in bytes_available()[all …]
30 write_ptr_(nullptr) {}35 written_previously_ += static_cast<uint64_t>(write_ptr_ - cur_range_.begin); in Reset()37 write_ptr_ = range.begin; in Reset()38 PERFETTO_DCHECK(!write_ptr_ || write_ptr_ < cur_range_.end); in Reset()49 if (write_ptr_ >= cur_range_.end) in WriteBytesSlowPath()61 if (write_ptr_ + size > cur_range_.end) { in ReserveBytes()65 PERFETTO_DCHECK(write_ptr_ + size <= cur_range_.end); in ReserveBytes()67 uint8_t* begin = write_ptr_; in ReserveBytes()68 write_ptr_ += size; in ReserveBytes()