Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/TArrayG
Description
Copies data from one array into this array. Uses the fast path if the data in question does not need a constructor.
| Name | CopyToEmpty |
| Type | function |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/Array.h |
| Include Path | #include "uLang/Common/Containers/Array.h" |
template<typename OtherElementType>
void CopyToEmpty
(
const OtherElementType * OtherData,
int32_t OtherNum,
int32_t PrevMax,
int32_t ExtraSlack
)
Parameters
| Name | Remarks |
|---|---|
| Source | The source array to copy |
| PrevMax | The previous allocated size |
| ExtraSlack | Additional amount of memory to allocate at the end of the buffer. Counted in elements. Zero by default. |