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

Method ReadFloatArray

core/logic/CDataPack.cpp:222–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222cell_t *CDataPack::ReadFloatArray(cell_t *size) const
223{
224 if (!IsReadable() || elements[position].type != CDataPackType::FloatArray)
225 {
226 if(size)
227 *size = 0;
228
229 return nullptr;
230 }
231
232 cell_t *val = elements[position].pData.aval;
233 cell_t *ptr = &(val[1]);
234 ++position;
235
236 if (size)
237 *size = val[0];
238
239 return ptr;
240}
241
242void *CDataPack::ReadMemory(size_t *size) const
243{

Callers 1

smn_ReadPackFloatArrayFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected