14 #ifndef _INC_MSCLR_MARSHAL_CPPSTD
15 #define _INC_MSCLR_MARSHAL_CPPSTD
35 if (_from_obj ==
nullptr)
45 _to_obj.resize(_size-1);
46 char *_dest_buf = &(_to_obj[0]);
63 if(_from_obj !=
nullptr)
66 std::wstring _to_obj(static_cast<const wchar_t *>(_pinned_ptr), _from_obj->Length);
#define _EXCEPTION_NULLPTR
Definition: marshal.h:39
_Check_return_ size_t GetAnsiStringSize(System::String^_str)
Definition: marshal.h:78
System::String InternalAnsiToStringHelper(_In_reads_z_(_count+1) const char *_src, size_t _count)
Definition: marshal.h:147
__const_Char_ptr PtrToStringChars(__const_String_handle s)
Definition: vcclr.h:40
_To_Type marshal_as(_In_z_ const char _from_object[])
Definition: marshal.h:190
void WriteAnsiString(_Out_writes_all_(_size) _Post_z_ char *_buf, size_t _size, System::String^_str)
Definition: marshal.h:93
basic_string< wchar_t, char_traits< wchar_t >, allocator< wchar_t > > wstring
Definition: xstring:2636
basic_string< char, char_traits< char >, allocator< char > > string
Definition: xstring:2634
System::String InternalUnicodeToStringHelper(_In_reads_z_(_count+1) const wchar_t *_src, size_t _count)
Definition: marshal.h:165