mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
cellarray: Update lying ArrayCreate doc
This commit is contained in:
parent
88b69ea8a1
commit
bbffcbf739
@ -1,12 +1,12 @@
|
||||
// vim: set ts=4 sw=4 tw=99 noet:
|
||||
//
|
||||
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
|
||||
// Copyright (C) The AMX Mod X Development Team.
|
||||
//
|
||||
// This software is licensed under the GNU General Public License, version 3 or higher.
|
||||
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
|
||||
// https://alliedmods.net/amxmodx-license
|
||||
|
||||
// vim: set ts=4 sw=4 tw=99 noet:
|
||||
//
|
||||
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
|
||||
// Copyright (C) The AMX Mod X Development Team.
|
||||
//
|
||||
// This software is licensed under the GNU General Public License, version 3 or higher.
|
||||
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
|
||||
// https://alliedmods.net/amxmodx-license
|
||||
|
||||
#if defined _cellarray_included
|
||||
#endinput
|
||||
#endif
|
||||
@ -53,15 +53,19 @@ stock ByteCountToCells(size)
|
||||
*
|
||||
* @note It is very important that the provided cellsize matches up with the
|
||||
* buffer sizes that you pass with subsequent Array[Get|Set|Push] calls.
|
||||
* @note 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().
|
||||
*
|
||||
* @param cellsize Size of each array entry in cells
|
||||
* @param reserver Amount of blank entries that are inserted immediately
|
||||
* upon creation of the array. These are not readable until
|
||||
* initialized with an ArraySet* function.
|
||||
* @param 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.
|
||||
*
|
||||
* @return Handle to the array.
|
||||
*/
|
||||
native Array:ArrayCreate(cellsize = 1, reserved = 0);
|
||||
native Array:ArrayCreate(cellsize = 1, reserved = 32);
|
||||
|
||||
/**
|
||||
* Clones an array, returning a new handle with the same size and data.
|
||||
|
Loading…
Reference in New Issue
Block a user