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

Method Reallocate

cpp/src/arrow/io/file_test.cc:479–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477 }
478
479 Status Reallocate(int64_t old_size, int64_t new_size, int64_t /*alignment*/,
480 uint8_t** ptr) override {
481 *ptr = reinterpret_cast<uint8_t*>(std::realloc(*ptr, new_size));
482
483 if (*ptr == NULL) {
484 return Status::OutOfMemory("realloc of size ", new_size, " failed");
485 }
486
487 return Status::OK();
488 }
489
490 int64_t bytes_allocated() const override { return -1; }
491

Callers

nothing calls this directly

Calls 2

OutOfMemoryFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected