Home
last modified time | relevance | path

Searched refs:size_ (Results 1 – 2 of 2) sorted by relevance

/device/google/cuttlefish_common/common/libs/auto_resources/
Dauto_resources.cpp50 size_ = 0; in Clear()
63 if (size_ > newsize) size_ = newsize; in Reserve()
69 if (reserve_size_ < kAutoBufferShrinkReserveThreshold && newsize < size_) { in Resize()
70 size_ = newsize; in Resize()
77 if (newsize > size_) memset(&data_[size_], 0, newsize - size_); in Resize()
78 size_ = newsize; in Resize()
90 size_t offset = size_; in Append()
110 size_ = printf_size + 1; in PrintF()
Dauto_resources.h132 : data_(NULL), size_(0), reserve_size_(0) {} in AutoFreeBuffer()
135 : data_(NULL), size_(0), reserve_size_(0) { in AutoFreeBuffer()
164 return data_ + size_; in end()
168 return data_ + size_; in end()
172 return size_; in size()
184 size_t temp_size = size_; in Swap()
185 size_ = other.size_; in Swap()
186 other.size_ = temp_size; in Swap()
194 return (size_ == other.size_) && !memcmp(data_, other.data_, size_);
203 size_t size_; variable