PtrToStringUTF8()
Marshal::PtrToStringUTF8(IntPtr) method
Creates a managed String from an unmanaged zero-terminated UTF8-string.
static String System::Runtime::InteropServices::Marshal::PtrToStringUTF8(IntPtr ptr)
Arguments
Parameter | Type | Description |
---|---|---|
ptr | IntPtr | Pointer to the unmanaged string. |
Return Value
A managed string.
Marshal::PtrToStringUTF8(IntPtr, int) method
Creates a managed String from an unmanaged UTF8-string.
static String System::Runtime::InteropServices::Marshal::PtrToStringUTF8(IntPtr ptr, int length)
Arguments
Parameter | Type | Description |
---|---|---|
ptr | IntPtr | Pointer to the unmanaged string. |
length | int | Length of the unmanaged string. |
Return Value
A managed string.
See Also
- Class String
- Class Marshal
- Namespace System::Runtime::InteropServices
- Library Aspose.Slides