| 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); |
nothing calls this directly
no test coverage detected