Function push¶
Defined in File common.h
Function Documentation¶
-
usize
push
(u0 *self, const u0 *element, usize width)¶ Push element to array.
- Return
How much capacity increased.
- Parameters
[inout] self
: Pointer to the dynamic array, cast to (u0 *).[in] element
: Pointer to element to be pushed, cast to (u0 *).[in] width
: Thesizeof(T)
whereT
is the type of the element that is being pushed.