Static Public Member Functions | |
template<typename container > | |
static void | Copy (const IntPtr source, container &&destination, int startIndex, int length) |
template<typename container > | |
static void | Copy (const void *source, container &&destination, int startIndex, int length) |
template<typename container > | |
static void | Copy (const container &source, int startIndex, void *destination, int length) |
template<typename container > | |
static void | Copy (const container &source, int startIndex, IntPtr destination, int length) |
static void | WriteByte (IntPtr ptr, int offset, uint8_t value) |
static void | WriteByte (IntPtr ptr, uint8_t value) |
static void | WriteInt16 (IntPtr ptr, int offset, int16_t value) |
static void | WriteInt32 (IntPtr ptr, int offset, int32_t value) |
static void | WriteInt64 (IntPtr ptr, int offset, int64_t value) |
static uint8_t | ReadByte (IntPtr ptr, int offset=0) |
static int16_t | ReadInt16 (IntPtr ptr, int offset=0) |
static int32_t | ReadInt32 (IntPtr ptr, int offset=0) |
static int32_t | GetHRForException (const System::Exception &exc) |
static ASPOSECPP_SHARED_API IntPtr | SecureStringToGlobalAllocAnsi (const SharedPtr< Security::SecureString > &s) |
static ASPOSECPP_SHARED_API IntPtr | SecureStringToGlobalAllocUnicode (const SharedPtr< Security::SecureString > &s) |
static ASPOSECPP_SHARED_API IntPtr | AllocHGlobal (int32_t bytes_count) |
static ASPOSECPP_SHARED_API IntPtr | AllocHGlobal (IntPtr bytes_count) |
static ASPOSECPP_SHARED_API void | FreeHGlobal (IntPtr address) |
static ASPOSECPP_SHARED_API void | ZeroFreeGlobalAllocAnsi (IntPtr s) |
static ASPOSECPP_SHARED_API void | ZeroFreeGlobalAllocUnicode (IntPtr s) |
static ASPOSECPP_SHARED_API IntPtr | StringToHGlobalAnsi (const String &s) |
static ASPOSECPP_SHARED_API IntPtr | StringToHGlobalUni (const String &s) |
static ASPOSECPP_SHARED_API IntPtr | StringToHGlobalAuto (const String &s) |
static ASPOSECPP_SHARED_API String | PtrToStringAnsi (IntPtr ptr) |
static ASPOSECPP_SHARED_API String | PtrToStringAnsi (IntPtr ptr, int length) |
static ASPOSECPP_SHARED_API String | PtrToStringAuto (IntPtr ptr) |
static ASPOSECPP_SHARED_API String | PtrToStringAuto (IntPtr ptr, int length) |
static ASPOSECPP_SHARED_API String | PtrToStringUni (IntPtr ptr) |
static ASPOSECPP_SHARED_API String | PtrToStringUni (IntPtr ptr, int length) |
static ASPOSECPP_SHARED_API String | PtrToStringUTF8 (IntPtr ptr) |
static ASPOSECPP_SHARED_API String | PtrToStringUTF8 (IntPtr ptr, int length) |
Provides marshalling implementation. For compatibility with translated code only, as no managed code is supported on C++ side. This is a static type with no instance services. You should never create instances of it by any means.
|
static |
Allocates unmanaged memory.
bytes_count | Required number of bytes. |
|
static |
Allocates unmanaged memory.
bytes_count | Required number of bytes. |
|
inlinestatic |
Implements public static void Copy(IntPtr source, byte[] destination, int startIndex, int length) semantics.
container | Destination container type. |
source | Source data pointer. |
destination | Container to copy data into. |
startIndex | Source start index. |
length | Number of elements to copy. |
|
inlinestatic |
Implements public static void Copy(IntPtr source, byte[] destination, int startIndex, int length) semantics.
container | Destination container type. |
source | Source data pointer. |
destination | Container to copy data into. |
startIndex | Source start index. |
length | Number of elements to copy. |
|
inlinestatic |
Implements public static void Copy(char[] source, int startIndex, IntPtr destination, int length).
container | Source container type. |
source | Source data pointer. |
startIndex | Source start index. |
destination | Destination data pointer. |
length | Number of elements to copy. |
|
inlinestatic |
Implements public static void Copy(char[] source, int startIndex, IntPtr destination, int length).
container | Source container type. |
source | Source data pointer. |
startIndex | Source start index. |
destination | Destination data pointer. |
length | Number of elements to copy. |
|
static |
Frees unmanaged memory.
address | Pointer to the allocated memory. |
|
inlinestatic |
Gets HResult from exception.
exc | Exception to get HResult for. |
|
static |
Creates a managed String from an unmanaged zero-terminated UTF8-string.
ptr | Pointer to the unmanaged string. |
|
static |
Creates a managed String from an unmanaged UTF8-string.
ptr | Pointer to the unmanaged string. |
length | Length of the unmanaged string. |
|
static |
Creates a managed String from an unmanaged zero-terminated string.
ptr | Pointer to the unmanaged string. |
|
static |
Creates a managed String from an unmanaged string.
ptr | Pointer to the unmanaged string. |
length | Length of the unmanaged string. |
|
static |
Creates a managed String from an unmanaged zero-terminated unicode string.
ptr | Pointer to the unmanaged string. |
|
static |
Creates a managed String from an unmanaged unicode string.
ptr | Pointer to the unmanaged string. |
length | Length of the unmanaged string. |
|
static |
Creates a managed String from an unmanaged zero-terminated UTF8-string.
ptr | Pointer to the unmanaged string. |
|
static |
Creates a managed String from an unmanaged UTF8-string.
ptr | Pointer to the unmanaged string. |
length | Length of the unmanaged string. |
|
inlinestatic |
Reads byte from memory.
ptr | Memory buffer. |
offset | Offset to memory buffer. |
|
inlinestatic |
Reads short from memory.
ptr | Memory buffer. |
offset | Offset to memory buffer. |
|
inlinestatic |
Reads int from memory.
ptr | Memory buffer. |
offset | Offset to memory buffer. |
|
static |
Copies contents of specified secure string into unmanaged memory, converting into ANSI format.
s | Secure string. |
|
static |
Copies contents of specified secure string into unmanaged memory.
s | Secure string. |
|
static |
Copies the contents of a specified string into unmanaged memory.
s | A string to be copied. |
|
static |
Copies the contents of a specified string into unmanaged memory, converting to ANSI format if required.
s | A string to be copied. |
|
static |
Copies the contents of a specified string into unmanaged memory.
s | A string to be copied. |
|
inlinestatic |
Writes byte to memory.
ptr | Memory buffer. |
offset | Offset to memory buffer. |
value | to write. |
|
inlinestatic |
Writes byte to memory.
ptr | Memory buffer. |
value | to write. |
|
inlinestatic |
Writes short to memory.
ptr | Memory buffer. |
offset | Offset to memory buffer. |
value | to write. |
|
inlinestatic |
Writes int to memory.
ptr | Memory buffer. |
offset | Offset to memory buffer. |
value | to write. |
|
inlinestatic |
Writes long to memory.
ptr | Memory buffer. |
offset | Offset to memory buffer. |
value | to write. |
|
static |
Frees unmanaged string pointer that was allocated using the SecureStringToGlobalAllocAnsi method.
s | Pointer to the unmanaged string. |
|
static |
Frees unmanaged string pointer that was allocated using the SecureStringToGlobalAllocUnicode method.
s | Pointer to the unmanaged string. |