Liveness.h 874 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <stdint.h>
  3. #include "il2cpp-config.h"
  4. struct Il2CppClass;
  5. struct Il2CppObject;
  6. namespace il2cpp
  7. {
  8. namespace vm
  9. {
  10. class LIBIL2CPP_CODEGEN_API Liveness
  11. {
  12. public:
  13. typedef void (*register_object_callback)(Il2CppObject** arr, int size, void* userdata);
  14. typedef void (*WorldChangedCallback)();
  15. static void* Begin(Il2CppClass* filter, int max_object_count, register_object_callback callback, void* userdata, WorldChangedCallback onWorldStarted, WorldChangedCallback onWorldStopped);
  16. static void End(void* state);
  17. static void FromRoot(Il2CppObject* root, void* state);
  18. static void FromStatics(void* state);
  19. static void StopWorld(WorldChangedCallback onWorldStopped);
  20. static void StartWorld(WorldChangedCallback onWorldStarted);
  21. };
  22. } /* namespace vm */
  23. } /* namespace il2cpp */