STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Namespaces | Macros | Functions
marshal.h File Reference
#include <sal.h>
#include <windows.h>
#include <vcclr.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <memory>

Go to the source code of this file.

Classes

class  msclr::interop::details::char_buffer< T >
 
class  msclr::interop::context_node< _To_Type, _From_Type >
 
class  msclr::interop::error_reporting_helper< _To_Type, _From_Type, _Needs_Context >
 
class  msclr::interop::error_reporting_helper< _To_Type, _From_Type, false >
 
class  msclr::interop::error_reporting_helper< _To_Type, _From_Type, true >
 
class  msclr::interop::context_node_base
 
class  msclr::interop::context_node< _To_Type, _From_Type >
 
class  msclr::interop::marshal_context
 
class  msclr::interop::marshal_context::internal_marshaler< _To_Type, _From_Type, _Needs_Context >
 
class  msclr::interop::marshal_context::internal_marshaler< _To_Type, _From_Type, true >
 
class  msclr::interop::marshal_context::internal_marshaler< _To_Type, _From_Type, false >
 
class  msclr::interop::context_node< const char *, System::String^>
 
class  msclr::interop::context_node< const wchar_t *, System::String^>
 

Namespaces

 msclr
 
 msclr::interop
 
 msclr::interop::details
 

Macros

#define _INC_MSCLR_MARSHAL
 
#define _EXCEPTION_GREATER_THAN_INT_MAX   "Size of string exceeds INT_MAX."
 
#define _EXCEPTION_NULLPTR   "NULLPTR is not supported for this conversion."
 
#define _EXCEPTION_MB2WC   "Conversion from MultiByte to WideChar failed. Please check the content of the string and/or locale settings."
 
#define _EXCEPTION_WC2MB   "Conversion from WideChar to MultiByte failed. Please check the content of the string and/or locale settings."
 

Functions

_Check_return_ size_t msclr::interop::details::GetAnsiStringSize (System::String^_str)
 
void msclr::interop::details::WriteAnsiString (_Out_writes_all_(_size) _Post_z_ char *_buf, size_t _size, System::String^_str)
 
_Check_return_ size_t msclr::interop::details::GetUnicodeStringSize (_In_reads_z_(_count+1) const char *_str, size_t _count)
 
void msclr::interop::details::WriteUnicodeString (_Out_writes_all_(_size) _Post_z_ wchar_t *_dest, size_t _size, _In_reads_bytes_(_count) const char *_src, size_t _count)
 
System::String msclr::interop::details::InternalAnsiToStringHelper (_In_reads_z_(_count+1) const char *_src, size_t _count)
 
System::String msclr::interop::details::InternalUnicodeToStringHelper (_In_reads_z_(_count+1) const wchar_t *_src, size_t _count)
 
template<class _To_Type >
_To_Type msclr::interop::marshal_as (_In_z_ const char _from_object[])
 
template<class _To_Type >
_To_Type msclr::interop::marshal_as (_In_z_ const wchar_t _from_object[])
 
template<class _To_Type , class _From_Type >
_To_Type msclr::interop::marshal_as (const _From_Type &)
 
template<>
System::String msclr::interop::marshal_as (_In_z_ const char *const &_from_object)
 
template<>
System::String msclr::interop::marshal_as (_In_z_ char *const &_from_object)
 
template<>
System::String msclr::interop::marshal_as (_In_z_ const wchar_t *const &_from_object)
 
template<>
System::String msclr::interop::marshal_as (_In_z_ wchar_t *const &_from_object)
 

Macro Definition Documentation

#define _EXCEPTION_GREATER_THAN_INT_MAX   "Size of string exceeds INT_MAX."
#define _EXCEPTION_MB2WC   "Conversion from MultiByte to WideChar failed. Please check the content of the string and/or locale settings."
#define _EXCEPTION_NULLPTR   "NULLPTR is not supported for this conversion."
#define _EXCEPTION_WC2MB   "Conversion from WideChar to MultiByte failed. Please check the content of the string and/or locale settings."
#define _INC_MSCLR_MARSHAL