MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetVTablePrefix

Function GetVTablePrefix

Source/Engine/Scripting/ScriptingType.h:481–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479extern "C" FLAXENGINE_API ManagedBinaryModule* GetBinaryModuleCorlib();
480
481FORCE_INLINE int32 GetVTablePrefix()
482{
483#if defined(_MSC_VER)
484 // Include size of the RTTI Complete Object Locator that lays before the vtable in the memory.
485 return 96;
486#elif defined(__clang__)
487 // Something important is before vtable in memory.
488 return 48;
489#else
490 return 0;
491#endif
492}
493
494FORCE_INLINE int32 GetVTableIndex(void** vtable, int32 entriesCount, void* func)
495{

Callers 2

~ScriptingTypeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected