Lines Matching refs:capacity

343     inline constexpr uint32_t capacity() const { return mCapacity; }  in capacity()  function
356 inline explicit _C2LinearCapacityAspect(size_t capacity) = delete;
359 inline explicit constexpr _C2LinearCapacityAspect(uint32_t capacity) in _C2LinearCapacityAspect() argument
360 : mCapacity(capacity) { } in _C2LinearCapacityAspect()
363 : mCapacity(parent == nullptr ? 0 : parent->capacity()) { } in _C2LinearCapacityAspect()
391 mOffset(c2_min(offset, capacity())), in _C2LinearRangeAspect()
392 mSize(c2_min(size, capacity() - mOffset)) { in _C2LinearRangeAspect()
398 : _C2LinearCapacityAspect(other.capacity()), in _C2LinearRangeAspect()
407 mSize(capacity()) { in _C2LinearRangeAspect()
413 mOffset(c2_min(offset, capacity())), in _C2LinearRangeAspect()
414 mSize(c2_min(size, capacity() - mOffset)) { in _C2LinearRangeAspect()
420 mOffset(c2_min(c2_max(offset, parent == nullptr ? 0 : parent->offset()), capacity())), in _C2LinearRangeAspect()
421 … mSize(std::min(c2_min(size, parent == nullptr ? 0 : parent->size()), capacity() - mOffset)) { in _C2LinearRangeAspect()
428 c2_min(c2_max(offset, mOffset), capacity()) - mOffset, in childRange()
429 c2_min(c2_min(size, mSize), capacity() - c2_min(c2_max(offset, mOffset), capacity()))); in childRange()
460 inline constexpr explicit C2LinearCapacity(size_t capacity) in C2LinearCapacity() argument
461 : _C2LinearCapacityAspect(c2_min(capacity, std::numeric_limits<uint32_t>::max())) { } in C2LinearCapacity()
489 if (offset > capacity()) { in setOffset()
510 if (size > capacity() - mOffset) { in setSize()
526 (void)setOffset(c2_min(offset, capacity())); in setOffset_be()
537 mSize = c2_min(size, capacity() - mOffset); in setSize_be()
648 uint32_t capacity __unused, C2MemoryUsage usage __unused, in newLinearAllocation()
822 C2LinearAllocation(size_t capacity) : _C2LinearCapacityAspect(c2_min(capacity, UINT32_MAX)) {} in C2LinearAllocation() argument
898 uint32_t capacity __unused, C2MemoryUsage usage __unused, in fetchLinearBlock()
926 uint32_t capacity __unused, C2MemoryUsage usage __unused, in fetchCircularBlock()