MarshalStringAlloc.cpp 853 B

12345678910111213141516171819202122232425262728293031323334
  1. #include "il2cpp-config.h"
  2. #if IL2CPP_USE_GENERIC_COM
  3. #include "os/MarshalStringAlloc.h"
  4. namespace il2cpp
  5. {
  6. namespace os
  7. {
  8. il2cpp_hresult_t MarshalStringAlloc::AllocateBStringLength(const Il2CppChar* text, int32_t length, Il2CppChar** bstr)
  9. {
  10. NO_UNUSED_WARNING(text);
  11. NO_UNUSED_WARNING(length);
  12. IL2CPP_ASSERT(bstr);
  13. *bstr = NULL;
  14. return IL2CPP_COR_E_PLATFORMNOTSUPPORTED;
  15. }
  16. il2cpp_hresult_t MarshalStringAlloc::GetBStringLength(const Il2CppChar* bstr, int32_t* length)
  17. {
  18. NO_UNUSED_WARNING(bstr);
  19. IL2CPP_ASSERT(length);
  20. *length = 0;
  21. return IL2CPP_COR_E_PLATFORMNOTSUPPORTED;
  22. }
  23. il2cpp_hresult_t MarshalStringAlloc::FreeBString(Il2CppChar* bstr)
  24. {
  25. NO_UNUSED_WARNING(bstr);
  26. return IL2CPP_COR_E_PLATFORMNOTSUPPORTED;
  27. }
  28. }
  29. }
  30. #endif