Lines Matching defs:buffer_
37 char *buffer_ = get_empty_string();
42 buffer_ = get_empty_string();
49 if (buffer_ != get_empty_string())
50 buffer_[size_] = NULL_CHARACTER;
57 : buffer_(other.buffer_), size_(other.size_), capacity_(other.capacity_) {
62 inline_memcpy(buffer_, cstr, count);
70 inline_memset((void *)buffer_, value, size_);
79 buffer_ = other.buffer_;
91 if (buffer_ != get_empty_string())
92 ::free(buffer_);
99 LIBC_INLINE constexpr const char *data() const { return buffer_; }
100 LIBC_INLINE char *data() { return buffer_; }
122 return string_view(buffer_, size_);
129 // We extend the capacity to amortize buffer_ reallocations.
134 if (void *Ptr = ::realloc(buffer_ == get_empty_string() ? nullptr : buffer_,
136 buffer_ = static_cast<char *>(Ptr);
155 inline_memcpy(buffer_ + size_, rhs.data(), rhs.size());
163 buffer_[size_] = c;