Il2CppHStringReference.h 438 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <il2cpp-object-internals.h>
  3. #include "utils/StringView.h"
  4. namespace il2cpp
  5. {
  6. namespace vm
  7. {
  8. class Il2CppHStringReference
  9. {
  10. private:
  11. Il2CppHString m_String;
  12. Il2CppHStringHeader m_Header;
  13. public:
  14. Il2CppHStringReference(const utils::StringView<Il2CppNativeChar>& str);
  15. inline operator Il2CppHString() const
  16. {
  17. return m_String;
  18. }
  19. };
  20. }
  21. }