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