Function push

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: The sizeof(T) where T is the type of the element that is being pushed.