ArrayCreate
- Синтаксис
-
native Array:ArrayCreate(cellsize = 1, reserved = 32);
Переменная | Описание |
---|---|
cellsize |
Size of each array entry in cells |
reserved |
Pre-allocates space in the array for the specified number of items. The items are not valid to read or set until they have actually been pushed into the array. |
- Описание
- Creates a handle to a dynamically sized array.
- Пометка
-
It is very important that the provided cellsize matches up with the buffer sizes that are passed with subsequent Array[Get|Set|Push] calls.
- Пометка
-
Initially the "reserved" parameter was intended to create blank entries that would immediately be usable with Array[Get|Set] functions. This functionality was never working as intended, and can now be achieved using ArrayResize().
- Возвращает
- New array handle, which must be freed via ArrayDestroy()