System::Runtime::InteropServices::Marshal::PtrToStringUTF8 方法
Marshal::PtrToStringUTF8(IntPtr) method
创建一个受管的 String,来自未托管的零终止 UTF8 字符串。
static String System::Runtime::InteropServices::Marshal::PtrToStringUTF8(IntPtr ptr)
| Parameter | Type | 描述 |
|---|---|---|
| ptr | IntPtr | 指向非托管字符串的指针。 |
ReturnValue
受管的字符串。
另见
- Class String
- Class Marshal
- Namespace System::Runtime::InteropServices
- Library Aspose.Page for C++
Marshal::PtrToStringUTF8(IntPtr, int) method
创建一个受管的 String,来自未托管的 UTF8 字符串。
static String System::Runtime::InteropServices::Marshal::PtrToStringUTF8(IntPtr ptr, int length)
| Parameter | Type | 描述 |
|---|---|---|
| ptr | IntPtr | 指向非托管字符串的指针。 |
| length | int | 未受管的字符串的长度。 |
ReturnValue
受管的字符串。
另见
- Class String
- Class Marshal
- Namespace System::Runtime::InteropServices
- Library Aspose.Page for C++