System::Runtime::InteropServices::Marshal::PtrToStringAnsi method
Marshal::PtrToStringAnsi(IntPtr) method
Creates a managed String from an unmanaged zero-terminated UTF8-string.
static String System::Runtime::InteropServices::Marshal::PtrToStringAnsi(IntPtr ptr)
Parameter | Type | Description |
---|---|---|
ptr | IntPtr | Pointer to the unmanaged string. |
ReturnValue
A managed string.
See Also
- Class String
- Class Marshal
- Namespace System::Runtime::InteropServices
- Library Aspose.PDF for C++
Marshal::PtrToStringAnsi(IntPtr, int) method
Creates a managed String from an unmanaged UTF8-string.
static String System::Runtime::InteropServices::Marshal::PtrToStringAnsi(IntPtr ptr, int length)
Parameter | Type | Description |
---|---|---|
ptr | IntPtr | Pointer to the unmanaged string. |
length | int | Length of the unmanaged string. |
ReturnValue
A managed string.
See Also
- Class String
- Class Marshal
- Namespace System::Runtime::InteropServices
- Library Aspose.PDF for C++