System::Runtime::InteropServices::Marshal 클래스
내용물
[
숨다
]Marshal class
마샬링 구현을 제공합니다. 번역된 코드와의 호환성을 위해서만 사용되며, C++ 측에서는 관리 코드를 지원하지 않습니다. 이는 인스턴스 서비스를 갖지 않는 정적 타입입니다. 어떠한 방법으로도 해당 타입의 인스턴스를 생성해서는 안 됩니다.
class Marshal
메서드
| 메서드 | 설명 |
|---|---|
| static AllocHGlobal(int32_t) | 관리되지 않는 메모리를 할당합니다. |
| static AllocHGlobal(IntPtr) | 관리되지 않는 메모리를 할당합니다. |
| static Copy(const IntPtr, container&&, int, int) | public static void Copy(IntPtr source, byte[] destination, int startIndex, int length) 의미를 구현합니다. |
| static Copy(const void *, container&&, int, int) | public static void Copy(IntPtr source, byte[] destination, int startIndex, int length) 의미를 구현합니다. |
| static Copy(const container&, int, void *, int) | public static void Copy(char[] source, int startIndex, IntPtr destination, int length) 의미를 구현합니다. |
| static Copy(const container&, int, IntPtr, int) | public static void Copy(char[] source, int startIndex, IntPtr destination, int length) 의미를 구현합니다. |
| static FreeHGlobal(IntPtr) | 관리되지 않는 메모리를 해제합니다. |
| static GetHRForException(const System::Exception&) | 예외에서 HResult를 가져옵니다. |
| static PtrToStringAnsi(IntPtr) | 관리되지 않는 널 종료 UTF8 문자열에서 관리되는 String을 생성합니다. |
| static PtrToStringAnsi(IntPtr, int) | 관리되지 않는 UTF8 문자열에서 관리되는 String을 생성합니다. |
| static PtrToStringAuto(IntPtr) | 관리되지 않는 널 종료 문자열에서 관리되는 String을 생성합니다. |
| static PtrToStringAuto(IntPtr, int) | 관리되지 않는 문자열에서 관리되는 String을 생성합니다. |
| static PtrToStringUni(IntPtr) | 관리되지 않는 널 종료 유니코드 문자열에서 관리되는 String을 생성합니다. |
| static PtrToStringUni(IntPtr, int) | 관리되지 않는 유니코드 문자열에서 관리되는 String을 생성합니다. |
| static PtrToStringUTF8(IntPtr) | 관리되지 않는 널 종료 UTF8 문자열에서 관리되는 String을 생성합니다. |
| static PtrToStringUTF8(IntPtr, int) | 관리되지 않는 UTF8 문자열에서 관리되는 String을 생성합니다. |
| static ReadByte(IntPtr, int) | 메모리에서 바이트를 읽습니다. |
| static ReadInt16(IntPtr, int) | 메모리에서 short를 읽습니다. |
| static ReadInt32(IntPtr, int) | 메모리에서 int를 읽습니다. |
| static SecureStringToGlobalAllocAnsi(const SharedPtr<Security::SecureString>&) | 지정된 보안 문자열의 내용을 비관리 메모리로 복사하고 ANSI 형식으로 변환합니다. |
| static SecureStringToGlobalAllocUnicode(const SharedPtr<Security::SecureString>&) | 지정된 보안 문자열의 내용을 비관리 메모리로 복사합니다. |
| static StringToHGlobalAnsi(const String&) | 지정된 문자열의 내용을 비관리 메모리로 복사합니다. |
| static StringToHGlobalAuto(const String&) | 필요한 경우 ANSI 형식으로 변환하면서 지정된 문자열의 내용을 비관리 메모리로 복사합니다. |
| static StringToHGlobalUni(const String&) | 지정된 문자열의 내용을 비관리 메모리로 복사합니다. |
| static WriteByte(IntPtr, int, uint8_t) | 바이트를 메모리에 씁니다. |
| static WriteByte(IntPtr, uint8_t) | 바이트를 메모리에 씁니다. |
| static WriteInt16(IntPtr, int, int16_t) | short를 메모리에 씁니다. |
| static WriteInt32(IntPtr, int, int32_t) | int를 메모리에 씁니다. |
| static WriteInt64(IntPtr, int, int64_t) | long을 메모리에 씁니다. |
| static ZeroFreeGlobalAllocAnsi(IntPtr) | SecureStringToGlobalAllocAnsi 메서드를 사용하여 할당된 비관리 문자열 포인터를 해제합니다. |
| static ZeroFreeGlobalAllocUnicode(IntPtr) | SecureStringToGlobalAllocUnicode 메서드를 사용하여 할당된 비관리 문자열 포인터를 해제합니다. |
또 보기
- Namespace System::Runtime::InteropServices
- Library Aspose.Page for C++