Searched refs:capacity_ (Results 1 – 4 of 4) sorted by relevance
46 capacity_ = 0; in ~Vector()92 size_t new_capacity = capacity_; in Resize()93 if (size < capacity_ / 2) { in Resize()95 } else if (size > capacity_) { in Resize()96 new_capacity = capacity_ * 2 > size ? capacity_ * 2 : size; in Resize()102 if (new_capacity != capacity_) { in Resize()138 capacity_ = new_capacity; in Resize()163 size_t capacity_ = 0; variable
85 size_t capacity_; variable94 capacity_ = capacity; in LeakyBondedQueue()103 if ((queue_.size() + 1) > capacity_) { in Enqueue()114 if ((queue_.size() + 1) > capacity_) { in EnqueueWithPop()149 return capacity_; in Capacity()
30 : data_(new uint8_t[size]), capacity_(size), read_pos_(0), write_pos_(0) { in MessageBuffer()48 return capacity_ - GetHeaderSize() >= length; in CanFitEver()91 CHECK(write_pos_ <= capacity_); in AppendRawBytes()
78 size_t GetFreeSize() const { return capacity_ - write_pos_; } in GetFreeSize()102 const size_t capacity_; variable