Expand

Function Usage

Expands the size of TilingData.

Prototype

1
void *Expand(size_t size)

Parameters

Parameter

Input/Output

Description

size

Input

Size to be expanded, in bytes.

Returns

Memory address of TilingData after the corresponding size is extended.

Constraints

The total size after expansion cannot exceed the maximum capacity of TilingData.

Examples

auto td_buf = TilingData::CreateCap(100U);
auto td = reinterpret_cast<TilingData *>(td_buf.get());
auto ptr = td->Expand(64U);
size_t cap = td->GetCapacity(); // 64U