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

Method RawSize

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

AddWithOverflowFunction · 0.85
OutOfMemoryFunction · 0.85

Tested by

no test coverage detected