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

Method RoundCapacity

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

Source from the content-addressed store, hash-verified

979
980 private:
981 static Result<int64_t> RoundCapacity(int64_t capacity) {
982 if (capacity > std::numeric_limits<int64_t>::max() - 63) {
983 return Status::OutOfMemory("capacity too large");
984 }
985 return bit_util::RoundUpToMultipleOf64(capacity);
986 }
987
988 MemoryPool* pool_;
989 int64_t alignment_;

Callers

nothing calls this directly

Calls 2

OutOfMemoryFunction · 0.85
RoundUpToMultipleOf64Function · 0.85

Tested by

no test coverage detected