Searched refs:required_capacity (Results 1 – 6 of 6) sorted by relevance
83 int required_capacity; in PyNode_AddChild() local90 required_capacity = XXXROUNDUP(nch + 1); in PyNode_AddChild()91 if (current_capacity < 0 || required_capacity < 0) in PyNode_AddChild()93 if (current_capacity < required_capacity) { in PyNode_AddChild()94 if (required_capacity > PY_SIZE_MAX / sizeof(node)) { in PyNode_AddChild()99 required_capacity * sizeof(node)); in PyNode_AddChild()
83 int required_capacity; in PyNode_AddChild() local90 required_capacity = XXXROUNDUP(nch + 1); in PyNode_AddChild()91 if (current_capacity < 0 || required_capacity < 0) in PyNode_AddChild()93 if (current_capacity < required_capacity) { in PyNode_AddChild()94 if ((size_t)required_capacity > SIZE_MAX / sizeof(node)) { in PyNode_AddChild()99 required_capacity * sizeof(node)); in PyNode_AddChild()
614 size_t required_capacity = *buffer_capacity; in GetReadBuffer() local615 if (!required_capacity) in GetReadBuffer()616 required_capacity = kReadBufferSize; in GetReadBuffer()618 *buffer_capacity = required_capacity; in GetReadBuffer()619 return read_buffer_->Reserve(required_capacity); in GetReadBuffer()
441 const size_t required_capacity = tensors_.size() + kTensorsCapacityHeadroom; in EnsureTensorsVectorCapacity() local442 if (required_capacity > tensors_.capacity()) { in EnsureTensorsVectorCapacity()443 tensors_.reserve(required_capacity); in EnsureTensorsVectorCapacity()
103 Maybe<bool> ExpandBuffer(size_t required_capacity);
297 Maybe<bool> ValueSerializer::ExpandBuffer(size_t required_capacity) { in ExpandBuffer() argument298 DCHECK_GT(required_capacity, buffer_capacity_); in ExpandBuffer()300 std::max(required_capacity, buffer_capacity_ * 2) + 64; in ExpandBuffer()