Searched refs:capacity (Results 1 – 11 of 11) sorted by relevance
57 int capacity; member151 address_space_assert(allocator->capacity >= 1); in address_space_allocator_split_block()153 address_space_assert(allocator->size <= allocator->capacity); in address_space_allocator_split_block()158 if (allocator->size == allocator->capacity) { in address_space_allocator_split_block()159 int new_capacity = address_space_allocator_grow_capacity(allocator->capacity); in address_space_allocator_split_block()166 allocator->capacity = new_capacity; in address_space_allocator_split_block()325 allocator->capacity = initial_capacity; in address_space_allocator_init()336 address_space_assert(allocator->capacity >= allocator->size); in address_space_allocator_destroy()
64 stream->putBe32(allocator->capacity); in save()92 allocator->capacity = stream->getBe32(); in load()
105 size_type capacity() const { return mCapacity; } in capacity() function141 if (newCap <= this->capacity()) { in reserve()173 void init(iterator begin, iterator end, size_type capacity) { in init() argument176 this->mCapacity = capacity; in init()212 if (newSize > capacity()) { in grow_for_size()213 set_capacity(std::max(newSize, capacity() + capacity() / 2)); in grow_for_size()
35 RingBuffer(size_t capacity);37 size_t capacity() const { return mCapacity; } in capacity() function
26 RingBuffer::RingBuffer(size_t capacity) in RingBuffer() argument27 : mBuffer(new uint8_t[capacity]) in RingBuffer()28 , mCapacity(capacity) {} in RingBuffer()
21 MessageChannelBase::MessageChannelBase(size_t capacity) : mCapacity(capacity) {} in MessageChannelBase() argument
46 MessageChannelBase(size_t capacity);202 constexpr size_t capacity() const { return CAPACITY; } in capacity() function
66 size_t capacity() const { return sizeof(dhcpData); } in capacity() function
241 iov.iov_len = message->capacity(); in receiveFromInterface()279 iov[2].iov_len = message->capacity(); in receiveRawUdp()
367 message.resize(message.capacity()); in ReadEventFromFd()370 int ret = read(fd, message.data(), message.capacity()); in ReadEventFromFd()
478 chown system system /sys/class/power_supply/wireless/capacity