MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / find

Method find

deps/physx/physx/source/common/src/CmPtrTable.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68PxU32 PtrTable::find(const void* ptr) const
69{
70 const PxU32 nbPtrs = mCount;
71 void*const * PX_RESTRICT ptrs = getPtrs();
72
73 for(PxU32 i=0; i<nbPtrs; i++)
74 {
75 if(ptrs[i] == ptr)
76 return i;
77 }
78 return 0xffffffff;
79}
80
81void PtrTable::exportExtraData(PxSerializationContext& stream)
82{

Callers 15

broadPhaseMethod · 0.45
addReadyChunkToSceneMethod · 0.45
destroyChunkMethod · 0.45
loadChunkMethod · 0.45
loadMethod · 0.45
getChildIndexMethod · 0.45
getRenderActorMethod · 0.45
hasMaterialAlreadyMethod · 0.45
registerMaterialMethod · 0.45
hasResourceMethod · 0.45

Calls 1

getPtrsFunction · 0.85

Tested by 1

getChildIndexMethod · 0.36