MarshalingUtils.h 576 B

123456789101112131415161718
  1. #pragma once
  2. #include "il2cpp-config.h"
  3. #include "il2cpp-class-internals.h"
  4. namespace il2cpp
  5. {
  6. namespace utils
  7. {
  8. class MarshalingUtils
  9. {
  10. public:
  11. static void MarshalStructToNative(void* managedStructure, void* marshaledStructure, const Il2CppInteropData* interopData);
  12. static void MarshalStructFromNative(void* marshaledStructure, void* managedStructure, const Il2CppInteropData* interopData);
  13. static bool MarshalFreeStruct(void* marshaledStructure, const Il2CppInteropData* interopData);
  14. };
  15. } // namespace utils
  16. } // namespace il2cpp