◆ Data()
void * xgboost::common::MallocResource::Data |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Resize()
template<bool force_malloc = false>
void xgboost::common::MallocResource::Resize |
( |
std::size_t |
n_bytes, |
|
|
std::byte |
init = std::byte{0} |
|
) |
| |
|
inline |
Resize the resource to n_bytes.
Unlike std::vector::resize, it prefers realloc over malloc.
- Template Parameters
-
force_malloc | Force the use of malloc over realloc. Used for testing. |
- Parameters
-
◆ Size()
std::size_t xgboost::common::MallocResource::Size |
( |
| ) |
const |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file:
- External/xgboost/src/common/io.h