MCPcopy Create free account
hub / github.com/apache/arrow / RoundCapacity

Method RoundCapacity

cpp/src/arrow/memory_pool.cc:986–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984
985 private:
986 static Result<int64_t> RoundCapacity(int64_t capacity) {
987 if (capacity > std::numeric_limits<int64_t>::max() - 63) {
988 return Status::OutOfMemory("capacity too large");
989 }
990 return bit_util::RoundUpToMultipleOf64(capacity);
991 }
992
993 MemoryPool* pool_;
994 int64_t alignment_;

Callers

nothing calls this directly

Calls 2

OutOfMemoryFunction · 0.85
RoundUpToMultipleOf64Function · 0.85

Tested by

no test coverage detected