150 if (_size >
INT_MAX || _size <=0 )
154 details::char_buffer<wchar_t> _wchar_buf(_size);
155 if (_wchar_buf.get() ==
NULL)
157 throw gcnew System::InsufficientMemoryException();
162 return gcnew System::String(_wchar_buf.get(), 0,
static_cast<int>(_size)-1);
#define _EXCEPTION_GREATER_THAN_INT_MAX
Definition: marshal.h:38
_Check_return_ size_t GetUnicodeStringSize(_In_reads_z_(_count+1) const char *_str, size_t _count)
Definition: marshal.h:112
#define NULL
Definition: crtdbg.h:30
void WriteUnicodeString(_Out_writes_all_(_size) _Post_z_ wchar_t *_dest, size_t _size, _In_reads_bytes_(_count) const char *_src, size_t _count)
Definition: marshal.h:130
#define INT_MAX
Definition: limits.h:40