native

ArrayPushArray

Syntax

native ArrayPushArray(Array:which, const any:input[], size = -1);

Description

Creates a new item at the end of the cellarray and copies the provided array
into it.

Parameters

which Array handle
input Array to copy to the cellarray
size If not set, assumes the buffer size is equal to the
cellsize. Otherwise, the specified size is used.

Note

The input will be truncated if it is bigger than the cellsize the array
was created with.

Return

Index of the new entry

Error

If an invalid handle is provided or the resizing
operation runs out of memory, an error will be thrown.