MarshalStringAlloc.h 415 B

123456789101112131415
  1. #pragma once
  2. namespace il2cpp
  3. {
  4. namespace os
  5. {
  6. class MarshalStringAlloc
  7. {
  8. public:
  9. static il2cpp_hresult_t AllocateBStringLength(const Il2CppChar* text, int32_t length, Il2CppChar** bstr);
  10. static il2cpp_hresult_t GetBStringLength(const Il2CppChar* bstr, int32_t* length);
  11. static il2cpp_hresult_t FreeBString(Il2CppChar* bstr);
  12. };
  13. } /* namespace os */
  14. } /* namespace il2cpp*/