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

Method Reallocate

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

Source from the content-addressed store, hash-verified

470 }
471
472 Status Reallocate(int64_t old_size, int64_t new_size, int64_t /*alignment*/,
473 uint8_t** ptr) override {
474 *ptr = reinterpret_cast<uint8_t*>(std::realloc(*ptr, new_size));
475
476 if (*ptr == NULL) {
477 return Status::OutOfMemory("realloc of size ", new_size, " failed");
478 }
479
480 return Status::OK();
481 }
482
483 int64_t bytes_allocated() const override { return -1; }
484

Callers

nothing calls this directly

Calls 2

OutOfMemoryFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected