Searched refs:write_ptr_ (Results 1 – 4 of 4) 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 …]
63 return static_cast<size_t>(write_ptr_ - storage_begin_); in size()68 PERFETTO_DCHECK(write_ptr_ >= storage_begin_ && write_ptr_ <= storage_end_); in GrowIfNeeded()69 if (PERFETTO_UNLIKELY(write_ptr_ + kMaxElementSize > storage_end_)) { in GrowIfNeeded()84 uint8_t* write_ptr_; variable94 write_ptr_ = proto_utils::WriteVarInt(value, write_ptr_); in Append()107 PERFETTO_DCHECK(reinterpret_cast<size_t>(write_ptr_) % alignof(T) == 0); in Append()108 memcpy(reinterpret_cast<T*>(write_ptr_), &value, sizeof(T)); in Append()109 write_ptr_ += sizeof(T); in Append()
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()
27 size_t write_off = static_cast<size_t>(write_ptr_ - storage_begin_); in GrowSlowpath()36 write_ptr_ = storage_begin_ + write_off; in GrowSlowpath()43 write_ptr_ = storage_begin_; in Reset()