Marshal
SystemDefaultCharSize
SystemMaxDBCSCharSize
AddRef(IntPtr)
AllocCoTaskMem(Int32)
AllocHGlobal(Int32)
AllocHGlobal(IntPtr)
AreComObjectsAvailableForCleanup()
BindToMoniker(String)
ChangeWrapperHandleStrength(Object, Boolean)
CleanupUnusedObjectsInCurrentContext()
Copy(Byte[], Int32, IntPtr, Int32)
Copy(Char[], Int32, IntPtr, Int32)
Copy(Double[], Int32, IntPtr, Int32)
Copy(Int16[], Int32, IntPtr, Int32)
Copy(Int32[], Int32, IntPtr, Int32)
Copy(Int64[], Int32, IntPtr, Int32)
Copy(IntPtr, Byte[], Int32, Int32)
Copy(IntPtr, Char[], Int32, Int32)
Copy(IntPtr, Double[], Int32, Int32)
Copy(IntPtr, Int16[], Int32, Int32)
Copy(IntPtr, Int32[], Int32, Int32)
Copy(IntPtr, Int64[], Int32, Int32)
Copy(IntPtr, IntPtr[], Int32, Int32)
Copy(IntPtr, Single[], Int32, Int32)
Copy(IntPtr[], Int32, IntPtr, Int32)
Copy(Single[], Int32, IntPtr, Int32)
CreateAggregatedObject(IntPtr, Object)
CreateAggregatedObject<T>(IntPtr, T)
CreateWrapperOfType(Object, Type)
CreateWrapperOfType<T, TWrapper>(T)
DestroyStructure(IntPtr, Type)
DestroyStructure<T>(IntPtr)
FinalReleaseComObject(Object)
FreeBSTR(IntPtr)
FreeCoTaskMem(IntPtr)
FreeHGlobal(IntPtr)
GenerateGuidForType(Type)
GenerateProgIdForType(Type)
GetActiveObject(String)
GetComInterfaceForObject(Object, Type)
GetComInterfaceForObject(Object, Type, CustomQueryInterfaceMode)
GetComInterfaceForObject<T, TInterface>(T)
GetComInterfaceForObjectInContext(Object, Type)
GetComObjectData(Object, Object)
GetComSlotForMethodInfo(MemberInfo)
GetDelegateForFunctionPointer(IntPtr, Type)
GetDelegateForFunctionPointer<TDelegate>(IntPtr)
GetEndComSlot(Type)
GetExceptionCode()
GetExceptionForHR(Int32)
GetExceptionForHR(Int32, IntPtr)
GetExceptionForHR(Int32, Guid, nint)
GetExceptionPointers()
GetFunctionPointerForDelegate(Delegate)
GetFunctionPointerForDelegate<TDelegate>(TDelegate)
GetHINSTANCE(Module)
GetHRForException(Exception)
GetHRForLastWin32Error()
GetIDispatchForObject(Object)
GetIDispatchForObjectInContext(Object)
GetITypeInfoForType(Type)
GetIUnknownForObject(Object)
GetIUnknownForObjectInContext(Object)
GetLastPInvokeError()
GetLastPInvokeErrorMessage()
GetLastSystemError()
GetLastWin32Error()
GetManagedThunkForUnmanagedMethodPtr(IntPtr, IntPtr, Int32)
GetMethodInfoForComSlot(Type, Int32, ComMemberType)
GetNativeVariantForObject(Object, IntPtr)
GetNativeVariantForObject<T>(T, IntPtr)
GetObjectForIUnknown(IntPtr)
GetObjectForNativeVariant(IntPtr)
GetObjectForNativeVariant<T>(IntPtr)
GetObjectsForNativeVariants(IntPtr, Int32)
GetObjectsForNativeVariants<T>(IntPtr, Int32)
GetPInvokeErrorMessage(Int32)
GetStartComSlot(Type)
GetThreadFromFiberCookie(Int32)
GetTypedObjectForIUnknown(IntPtr, Type)
GetTypeForITypeInfo(IntPtr)
GetTypeFromCLSID(Guid)
GetTypeInfoName(ITypeInfo)
GetTypeInfoName(UCOMITypeInfo)
GetTypeLibGuid(ITypeLib)
GetTypeLibGuid(UCOMITypeLib)
GetTypeLibGuidForAssembly(Assembly)
GetTypeLibLcid(ITypeLib)
GetTypeLibLcid(UCOMITypeLib)
GetTypeLibName(ITypeLib)
GetTypeLibName(UCOMITypeLib)
GetTypeLibVersionForAssembly(Assembly, Int32, Int32)
GetUniqueObjectForIUnknown(IntPtr)
GetUnmanagedThunkForManagedMethodPtr(IntPtr, IntPtr, Int32)
InitHandle(SafeHandle, nint)
IsComObject(Object)
IsTypeVisibleFromCom(Type)
NumParamBytes(MethodInfo)
OffsetOf(Type, String)
OffsetOf<T>(String)
Prelink(MethodInfo)
PrelinkAll(Type)
PtrToStringAnsi(IntPtr)
PtrToStringAnsi(IntPtr, Int32)
PtrToStringAuto(IntPtr)
PtrToStringAuto(IntPtr, Int32)
PtrToStringBSTR(IntPtr)
PtrToStringUni(IntPtr)
PtrToStringUni(IntPtr, Int32)
PtrToStringUTF8(IntPtr)
PtrToStringUTF8(IntPtr, Int32)
PtrToStructure(IntPtr, Object)
PtrToStructure(IntPtr, Type)
PtrToStructure<T>(IntPtr)
PtrToStructure<T>(IntPtr, T)
QueryInterface(IntPtr, Guid, IntPtr)
ReadByte(IntPtr)
ReadByte(IntPtr, Int32)
ReadByte(Object, Int32)
ReadInt16(IntPtr)
ReadInt16(IntPtr, Int32)
ReadInt16(Object, Int32)
ReadInt32(IntPtr)
ReadInt32(IntPtr, Int32)
ReadInt32(Object, Int32)
ReadInt64(IntPtr)
ReadInt64(IntPtr, Int32)
ReadInt64(Object, Int32)
ReadIntPtr(IntPtr)
ReadIntPtr(IntPtr, Int32)
ReadIntPtr(Object, Int32)
ReAllocCoTaskMem(IntPtr, Int32)
ReAllocHGlobal(IntPtr, IntPtr)
Release(IntPtr)
ReleaseComObject(Object)
ReleaseThreadCache()
SecureStringToBSTR(SecureString)
SecureStringToCoTaskMemAnsi(SecureString)
SecureStringToCoTaskMemUnicode(SecureString)
SecureStringToGlobalAllocAnsi(SecureString)
SecureStringToGlobalAllocUnicode(SecureString)
SetComObjectData(Object, Object, Object)
SetLastPInvokeError(Int32)
SetLastSystemError(Int32)
SizeOf(Object)
SizeOf(Type)
SizeOf<T>()
SizeOf<T>(T)
StringToBSTR(String)
StringToCoTaskMemAnsi(String)
StringToCoTaskMemAuto(String)
StringToCoTaskMemUni(String)
StringToCoTaskMemUTF8(String)
StringToHGlobalAnsi(String)
StringToHGlobalAuto(String)
StringToHGlobalUni(String)
StructureToPtr(Object, IntPtr, Boolean)
StructureToPtr<T>(T, IntPtr, Boolean)
ThrowExceptionForHR(Int32)
ThrowExceptionForHR(Int32, IntPtr)
ThrowExceptionForHR(Int32, Guid, nint)
UnsafeAddrOfPinnedArrayElement(Array, Int32)
UnsafeAddrOfPinnedArrayElement<T>(T[], Int32)
WriteByte(IntPtr, Byte)
WriteByte(IntPtr, Int32, Byte)
WriteByte(Object, Int32, Byte)
WriteInt16(IntPtr, Char)
WriteInt16(IntPtr, Int16)
WriteInt16(IntPtr, Int32, Char)
WriteInt16(IntPtr, Int32, Int16)
WriteInt16(Object, Int32, Char)
WriteInt16(Object, Int32, Int16)
WriteInt32(IntPtr, Int32)
WriteInt32(IntPtr, Int32, Int32)
WriteInt32(Object, Int32, Int32)
WriteInt64(IntPtr, Int64)
WriteInt64(IntPtr, Int32, Int64)
WriteInt64(Object, Int32, Int64)
WriteIntPtr(IntPtr, IntPtr)
WriteIntPtr(IntPtr, Int32, IntPtr)
WriteIntPtr(Object, Int32, IntPtr)
ZeroFreeBSTR(IntPtr)
ZeroFreeCoTaskMemAnsi(IntPtr)
ZeroFreeCoTaskMemUnicode(IntPtr)
ZeroFreeCoTaskMemUTF8(IntPtr)
ZeroFreeGlobalAllocAnsi(IntPtr)
ZeroFreeGlobalAllocUnicode(IntPtr)
net10.0
namespace System.Runtime.InteropServices
{
public static class Marshal
{
public static string? PtrToStringUTF8(IntPtr ptr);
}
}
| nuget.org | 0.1 % Reference this API |
|---|---|
| .NET | 5.06.07.08.09.010.0 |
| .NET Core | 3.03.1 |
Information specific to net10.0 | |
| Assembly | System.Runtime.InteropServices , Version=10.0.0.0, PublicKeyToken=b03f5f7f11d50a3a |
| Referencing | The API is automatically referenced. |
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API