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

Method RawSize

cpp/src/arrow/memory_pool.cc:272–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270
271 private:
272 static Result<int64_t> RawSize(int64_t size) {
273 if (ARROW_PREDICT_FALSE(internal::AddWithOverflow(size, kOverhead, &size))) {
274 return Status::OutOfMemory("Memory allocation size too large");
275 }
276 return size;
277 }
278
279 static void InitAllocatedArea(uint8_t* ptr, int64_t size) {
280 DCHECK_NE(size, 0);

Callers

nothing calls this directly

Calls 2

AddWithOverflowFunction · 0.85
OutOfMemoryFunction · 0.85

Tested by

no test coverage detected