MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / ReadCellArray

Method ReadCellArray

core/logic/CDataPack.cpp:202–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202cell_t *CDataPack::ReadCellArray(cell_t *size) const
203{
204 if (!IsReadable() || elements[position].type != CDataPackType::CellArray)
205 {
206 if(size)
207 *size = 0;
208
209 return nullptr;
210 }
211
212 cell_t *val = elements[position].pData.aval;
213 cell_t *ptr = &(val[1]);
214 ++position;
215
216 if (size)
217 *size = val[0];
218
219 return ptr;
220}
221
222cell_t *CDataPack::ReadFloatArray(cell_t *size) const
223{

Callers 1

smn_ReadPackCellArrayFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected