Don't expose CellArrays in ISourceMod to extensions
Don't let extensions have access to the internal implementation of cell arrays.
This commit is contained in:
@@ -50,11 +50,24 @@ public:
|
||||
free(m_Data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Creates a cell array object.
|
||||
*
|
||||
* @param blocksize The number of cells each member of the array can
|
||||
* hold. For example, 32 cells is equivalent to:
|
||||
* new Array[X][32]
|
||||
* @return A new ICellArray object.
|
||||
*/
|
||||
static ICellArray *New(size_t blocksize)
|
||||
{
|
||||
return new CellArray(blocksize);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Releases a cell array's resources.
|
||||
*
|
||||
* @param pack An ICellArray object to release.
|
||||
*/
|
||||
static void Free(ICellArray *arr)
|
||||
{
|
||||
delete arr;
|
||||
|
||||
Reference in New Issue
Block a user