MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / GetDataPointer

Method GetDataPointer

external/as_add_on/scriptarray/scriptarray.cpp:1378–1390  ·  view source on GitHub ↗

internal Return pointer to data in buffer (object or primitive)

Source from the content-addressed store, hash-verified

1376// internal
1377// Return pointer to data in buffer (object or primitive)
1378void *CScriptArray::GetDataPointer(void *buf)
1379{
1380 if ((subTypeId & asTYPEID_MASK_OBJECT) && !(subTypeId & asTYPEID_OBJHANDLE) )
1381 {
1382 // Real address of object
1383 return reinterpret_cast<void*>(*(size_t*)buf);
1384 }
1385 else
1386 {
1387 // Primitive is just a raw data
1388 return buf;
1389 }
1390}
1391
1392
1393// Sort ascending

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected