MarshalAlloc.h 432 B

123456789101112131415161718
  1. #pragma once
  2. namespace il2cpp
  3. {
  4. namespace os
  5. {
  6. class MarshalAlloc
  7. {
  8. public:
  9. static void* Allocate(size_t size);
  10. static void* ReAlloc(void* ptr, size_t size);
  11. static void Free(void* ptr);
  12. static void* AllocateHGlobal(size_t size);
  13. static void* ReAllocHGlobal(void* ptr, size_t size);
  14. static void FreeHGlobal(void* ptr);
  15. };
  16. } /* namespace os */
  17. } /* namespace il2cpp*/