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

Method EnsureScratch

cpp/src/parquet/column_reader.cc:719–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717 ::arrow::MemoryPool* pool_ = nullptr;
718
719 void EnsureScratch() {
720 if (this->scratch_ == nullptr) {
721 this->scratch_ = AllocateBuffer(pool_, kScratchByteSize);
722 }
723 ARROW_DCHECK_NE(this->scratch_, nullptr);
724 }
725};
726
727// ----------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

AllocateBufferFunction · 0.70

Tested by

no test coverage detected