Classe System::Runtime::InteropServices::Marshal
Contenuti
[
Nascondere
]Marshal class
Fornisce l’implementazione del marshalling. Solo per compatibilità con il codice tradotto, poiché il codice gestito non è supportato sul lato C++. Si tratta di un tipo statico senza servizi di istanza. Non dovresti mai creare istanze di esso in alcun modo.
class Marshal
Metodi
| Metodo | Descrizione |
|---|---|
| static AllocHGlobal(int32_t) | Alloca memoria non gestita. |
| static AllocHGlobal(IntPtr) | Alloca memoria non gestita. |
| static Copy(const IntPtr, container&&, int, int) | Implementa la semantica public static void Copy(IntPtr source, byte[] destination, int startIndex, int length). |
| static Copy(const void *, container&&, int, int) | Implementa la semantica public static void Copy(IntPtr source, byte[] destination, int startIndex, int length). |
| static Copy(const container&, int, void *, int) | Implementa public static void Copy(char[] source, int startIndex, IntPtr destination, int length). |
| static Copy(const container&, int, IntPtr, int) | Implementa public static void Copy(char[] source, int startIndex, IntPtr destination, int length). |
| static FreeHGlobal(IntPtr) | Libera memoria non gestita. |
| static GetHRForException(const System::Exception&) | Ottiene HResult dall’eccezione. |
| static PtrToStringAnsi(IntPtr) | Crea una String gestita da una stringa UTF8 non gestita terminata a zero. |
| static PtrToStringAnsi(IntPtr, int) | Crea una String gestita da una stringa UTF8 non gestita. |
| static PtrToStringAuto(IntPtr) | Crea una String gestita da una stringa non gestita terminata a zero. |
| static PtrToStringAuto(IntPtr, int) | Crea una String gestita da una stringa non gestita. |
| static PtrToStringUni(IntPtr) | Crea una String gestita da una stringa Unicode non gestita terminata a zero. |
| static PtrToStringUni(IntPtr, int) | Crea una String gestita da una stringa Unicode non gestita. |
| static PtrToStringUTF8(IntPtr) | Crea una String gestita da una stringa UTF8 non gestita terminata a zero. |
| static PtrToStringUTF8(IntPtr, int) | Crea una String gestita da una stringa UTF8 non gestita. |
| static ReadByte(IntPtr, int) | Legge un byte dalla memoria. |
| static ReadInt16(IntPtr, int) | Legge un short dalla memoria. |
| static ReadInt32(IntPtr, int) | Legge un int dalla memoria. |
| static SecureStringToGlobalAllocAnsi(const SharedPtr<Security::SecureString>&) | Copia il contenuto della stringa sicura specificata nella memoria non gestita, convertendo nel formato ANSI. |
| static SecureStringToGlobalAllocUnicode(const SharedPtr<Security::SecureString>&) | Copia il contenuto della stringa sicura specificata nella memoria non gestita. |
| static StringToHGlobalAnsi(const String&) | Copia il contenuto di una stringa specificata nella memoria non gestita. |
| static StringToHGlobalAuto(const String&) | Copia il contenuto di una stringa specificata nella memoria non gestita, convertendo nel formato ANSI se necessario. |
| static StringToHGlobalUni(const String&) | Copia il contenuto di una stringa specificata nella memoria non gestita. |
| static WriteByte(IntPtr, int, uint8_t) | Scrive un byte nella memoria. |
| static WriteByte(IntPtr, uint8_t) | Scrive un byte nella memoria. |
| static WriteInt16(IntPtr, int, int16_t) | Scrive un short nella memoria. |
| static WriteInt32(IntPtr, int, int32_t) | Scrive un int nella memoria. |
| static WriteInt64(IntPtr, int, int64_t) | Scrive long in memoria. |
| static ZeroFreeGlobalAllocAnsi(IntPtr) | Libera il puntatore a stringa non gestita che è stato allocato usando il metodo SecureStringToGlobalAllocAnsi. |
| static ZeroFreeGlobalAllocUnicode(IntPtr) | Libera il puntatore a stringa non gestita che è stato allocato usando il metodo SecureStringToGlobalAllocUnicode. |
Vedi anche
- Namespace System::Runtime::InteropServices
- Library Aspose.Font for C++