MCPcopy Create free account
hub / github.com/dmlc/xgboost / Data

Method Data

src/common/io.h:329–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327 ~MallocResource() noexcept(true) override { this->Clear(); }
328
329 void* Data() override { return ptr_; }
330 [[nodiscard]] std::size_t Size() const override { return n_; }
331 /**
332 * @brief Resize the resource to n_bytes. Unlike std::vector::resize, it prefers realloc

Callers 2

DataAsMethod · 0.45
ConsumeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected