102 instantiations of MarshalUsingAttribute
ILCompiler.Diagnostics (1)
ISymNGenWriter.cs (1)
136[MarshalUsing(CountElementName = nameof(cchMax))]
Microsoft.Diagnostics.DataContractReader.Legacy (75)
ClrDataFrame.cs (1)
51[Out, MarshalUsing(CountElementName = nameof(contextBufSize))] byte[] contextBuf)
ClrDataMethodInstance.cs (2)
360[In, Out, MarshalUsing(CountElementName = nameof(rangesLen))] ClrDataAddressRange[]? addressRanges) 455int IXCLRDataMethodInstance.GetILAddressMap(uint mapLen, uint* mapNeeded, [In, Out, MarshalUsing(CountElementName = "mapLen")] ClrDataILAddressMap[]? maps)
ClrDataStackWalk.cs (3)
85int IXCLRDataStackWalk.GetContext(uint contextFlags, uint contextBufSize, uint* contextSize, [MarshalUsing(CountElementName = "contextBufSize"), Out] byte[] contextBuf) 333int IXCLRDataStackWalk.SetContext(uint contextSize, [In, MarshalUsing(CountElementName = "contextSize")] byte[] context) 362int IXCLRDataStackWalk.SetContext2(uint flags, uint contextSize, [In, MarshalUsing(CountElementName = "contextSize")] byte[] context)
ClrDataValue.cs (3)
579int IXCLRDataValue.GetArrayProperties(uint* rank, uint* totalElements, uint numDim, [Out, MarshalUsing(CountElementName = nameof(numDim))] uint[] dims, uint numBases, [Out, MarshalUsing(CountElementName = nameof(numBases))] int[] bases) 629int IXCLRDataValue.GetArrayElement(uint numInd, [In, MarshalUsing(CountElementName = nameof(numInd))] int[] indices, DacComNullableByRef<IXCLRDataValue> value)
Dbi\DacDbiImpl.cs (1)
5358public int WalkRefs(nuint handle, uint count, [In, MarshalUsing(CountElementName = "count"), Out] DacGcReference[] refs, uint* pFetched)
Dbi\IDacDbiInterface.cs (1)
1031int WalkRefs(nuint handle, uint count, [In, Out, MarshalUsing(CountElementName = nameof(count))] DacGcReference[] refs, uint* pFetched);
ISOSDacInterface.cs (25)
508int Next(uint count, [In, Out, MarshalUsing(CountElementName = nameof(count))] SOSHandleData[] handles, uint* pNeeded); 566int Next(uint count, [In, Out, MarshalUsing(CountElementName = nameof(count))] SOSStackRefError[] refs, uint* pFetched); 574int Next(uint count, [In, Out, MarshalUsing(CountElementName = nameof(count))] SOSStackRefData[] refs, uint* pFetched); 593int Next(uint count, [In, Out, MarshalUsing(CountElementName = nameof(count))] SOSMemoryRegion[] memRegions, uint* pNeeded); 664int GetAppDomainList(uint count, [In, Out, MarshalUsing(CountElementName = nameof(count))] ClrDataAddress[] values, uint* pNeeded); 674int GetAssemblyList(ClrDataAddress appDomain, int count, [In, Out, MarshalUsing(CountElementName = nameof(count))] ClrDataAddress[]? values, int* pNeeded); 688int GetAssemblyModuleList(ClrDataAddress assembly, uint count, [In, Out, MarshalUsing(CountElementName = nameof(count))] ClrDataAddress[] modules, uint* pNeeded); 774int GetGCHeapList(uint count, [In, Out, MarshalUsing(CountElementName = nameof(count))] ClrDataAddress[] heaps, uint* pNeeded); // svr only 812int GetHandleEnumForTypes([In, MarshalUsing(CountElementName = nameof(count))] uint[] types, uint count, DacComNullableByRef<ISOSHandleEnum> ppHandleEnum); 830int GetCodeHeapList(ClrDataAddress jitManager, uint count, [In, MarshalUsing(CountElementName = nameof(count)), Out] DacpJitCodeHeapInfo[]? codeHeaps, uint* pNeeded); 848int GetRCWInterfaces(ClrDataAddress rcw, uint count, [In, Out, MarshalUsing(CountElementName = nameof(count))] DacpCOMInterfacePointerData[]? interfaces, uint* pNeeded); 852int GetCCWInterfaces(ClrDataAddress ccw, uint count, [In, MarshalUsing(CountElementName = nameof(count)), Out] DacpCOMInterfacePointerData[]? interfaces, uint* pNeeded); 873int GetFailedAssemblyList(ClrDataAddress appDomain, int count, [In, Out, MarshalUsing(CountElementName = nameof(count))] ClrDataAddress[] values, uint* pNeeded); 970int GetClrNotification([In, Out, MarshalUsing(CountElementName = nameof(count))] ClrDataAddress[] arguments, int count, int* pNeeded); 1001[In, Out, MarshalUsing(CountElementName = nameof(cNativeCodeAddrs))] DacpTieredVersionData[]? nativeCodeAddrs, 1099int GetObjectComWrappersData(ClrDataAddress objAddr, ClrDataAddress* rcw, uint count, [In, Out, MarshalUsing(CountElementName = nameof(count))] ClrDataAddress[]? mowList, uint* pNeeded); 1177int Next(uint count, [In, Out, MarshalUsing(CountElementName = nameof(count))] SOSMethodData[] values, uint* pNeeded); 1230[In, Out, MarshalUsing(CountElementName = nameof(count))] 1241[In, Out, MarshalUsing(CountElementName = nameof(count))] 1248[In, Out, MarshalUsing(CountElementName = nameof(argCount))] 1332[In, Out, MarshalUsing(CountElementName = nameof(count))] SOSCodeRange[]? ranges, 1339[In, Out, MarshalUsing(CountElementName = nameof(count))] uint[]? offsets, 1346[In, Out, MarshalUsing(CountElementName = nameof(count))] SOSGCSlotLifetime[]? lifetimes, 1396[In, Out, MarshalUsing(CountElementName = nameof(count))] uint[]? offsets, uint* pNeeded); 1400[In, Out, MarshalUsing(CountElementName = nameof(count))] SOSGCInfoX86Transition[]? transitions, uint* pNeeded);
IXCLRData.cs (18)
269int TranslateExceptionRecordToNotification(EXCEPTION_RECORD64* record, [MarshalUsing(typeof(UniqueComInterfaceMarshaller<IXCLRDataExceptionNotification>))] IXCLRDataExceptionNotification notify); 291[In, MarshalUsing(CountElementName = nameof(numTokens))] /*mdTypeDef*/ uint[]? tokens, 292[In, Out, MarshalUsing(CountElementName = nameof(numTokens))] uint[]? flags); 298[In, MarshalUsing(CountElementName = nameof(numTokens))] /*mdTypeDef*/ uint[]? tokens, 299[In, MarshalUsing(CountElementName = nameof(numTokens))] uint[]? flags, 306[In, MarshalUsing(CountElementName = nameof(numTokens))] /*mdMethodDef*/ uint[]? tokens, 307[In, Out, MarshalUsing(CountElementName = nameof(numTokens))] uint[]? flags); 313[In, MarshalUsing(CountElementName = nameof(numTokens))] /*mdMethodDef */ uint[]? tokens, 314[In, MarshalUsing(CountElementName = nameof(numTokens))] uint[]? flags, 398[Out, MarshalUsing(CountElementName = nameof(contextBufSize))] byte[] contextBuf); 401int SetContext(uint contextSize, [In, MarshalUsing(CountElementName = nameof(contextSize))] byte[] context); 419int SetContext2(uint flags, uint contextSize, [In, MarshalUsing(CountElementName = nameof(contextSize))] byte[] context); 434[Out, MarshalUsing(CountElementName = nameof(contextBufSize))] byte[] contextBuf); 621[In, Out, MarshalUsing(CountElementName = nameof(rangesLen))] ClrDataAddressRange[]? addressRanges); 627[In, Out, MarshalUsing(CountElementName = nameof(mapLen))] ClrDataILAddressMap[]? maps); 1168int GetArrayProperties(uint* rank, uint* totalElements, uint numDim, [Out, MarshalUsing(CountElementName = nameof(numDim))] uint[] dims, uint numBases, [Out, MarshalUsing(CountElementName = nameof(numBases))] int[] bases); 1170int GetArrayElement(uint numInd, [In, MarshalUsing(CountElementName = nameof(numInd))] int[] indices, DacComNullableByRef<IXCLRDataValue> value);
SOSDacImpl.cs (12)
194int ISOSDacInterface.GetAppDomainList(uint count, [In, MarshalUsing(CountElementName = "count"), Out] ClrDataAddress[] values, uint* pNeeded) 412int ISOSDacInterface.GetAssemblyList(ClrDataAddress addr, int count, [In, MarshalUsing(CountElementName = "count"), Out] ClrDataAddress[]? values, int* pNeeded) 495int ISOSDacInterface.GetAssemblyModuleList(ClrDataAddress assembly, uint count, [In, MarshalUsing(CountElementName = "count"), Out] ClrDataAddress[]? modules, uint* pNeeded) 661int ISOSDacInterface.GetCCWInterfaces(ClrDataAddress ccw, uint count, [In, MarshalUsing(CountElementName = nameof(count)), Out] DacpCOMInterfacePointerData[]? interfaces, uint* pNeeded) 878int ISOSDacInterface.GetCodeHeapList(ClrDataAddress jitManager, uint count, [In, MarshalUsing(CountElementName = nameof(count)), Out] DacpJitCodeHeapInfo[]? codeHeaps, uint* pNeeded) 1057int ISOSDacInterface.GetFailedAssemblyList(ClrDataAddress appDomain, int count, [In, MarshalUsing(CountElementName = "count"), Out] ClrDataAddress[] values, uint* pNeeded) 1330int ISOSDacInterface.GetGCHeapList(uint count, [In, MarshalUsing(CountElementName = "count"), Out] ClrDataAddress[] heaps, uint* pNeeded) 1933int ISOSDacInterface.GetHandleEnumForTypes([In, MarshalUsing(CountElementName = "count")] uint[] types, uint count, DacComNullableByRef<ISOSHandleEnum> ppHandleEnum) 3861int ISOSDacInterface.GetRCWInterfaces(ClrDataAddress rcw, uint count, [In, MarshalUsing(CountElementName = nameof(count)), Out] DacpCOMInterfacePointerData[]? interfaces, uint* pNeeded) 5449[In, MarshalUsing(CountElementName = nameof(cNativeCodeAddrs)), Out] DacpTieredVersionData[]? nativeCodeAddrs, 6229int ISOSDacInterface10.GetObjectComWrappersData(ClrDataAddress objAddr, ClrDataAddress* rcw, uint count, [In, MarshalUsing(CountElementName = "count"), Out] ClrDataAddress[]? mowList, uint* pNeeded) 7147int ISOSMethodEnum.Next(uint count, [In, Out, MarshalUsing(CountElementName = nameof(count))] SOSMethodData[] values, uint* pNeeded)
SOSDacImpl.IXCLRDataProcess.cs (9)
1167int IXCLRDataProcess.TranslateExceptionRecordToNotification(EXCEPTION_RECORD64* record, [MarshalUsing(typeof(UniqueComInterfaceMarshaller<IXCLRDataExceptionNotification>))] IXCLRDataExceptionNotification notify) 1425[In, MarshalUsing(CountElementName = nameof(numTokens))] /*mdTypeDef*/ uint[]? tokens, 1426[In, Out, MarshalUsing(CountElementName = nameof(numTokens))] uint[]? flags) 1437[In, MarshalUsing(CountElementName = nameof(numTokens))] /*mdTypeDef*/ uint[]? tokens, 1438[In, MarshalUsing(CountElementName = nameof(numTokens))] uint[]? flags, 1450[In, MarshalUsing(CountElementName = nameof(numTokens))] /*mdMethodDef*/ uint[]? tokens, 1451[In, Out, MarshalUsing(CountElementName = nameof(numTokens))] uint[]? flags) 1498[In, MarshalUsing(CountElementName = nameof(numTokens))] /*mdMethodDef */ uint[]? tokens, 1499[In, MarshalUsing(CountElementName = nameof(numTokens))] uint[]? flags,
Microsoft.DiaSymReader (5)
Reader\ISymUnmanagedEncUpdate.cs (1)
25[MarshalUsing(typeof(ComStreamWrapper.Marshaller))]
Reader\ISymUnmanagedReader.cs (3)
85[MarshalUsing(typeof(ComStreamWrapper.Marshaller))] 92[MarshalUsing(typeof(ComStreamWrapper.Marshaller))] 99[MarshalUsing(typeof(ComStreamWrapper.Marshaller))]
SymUnmanagedFactory.cs (1)
111private static unsafe partial int CoCreateInstance(in Guid rclsid, void* pUnkOuter, int dwClsContext, in Guid riid, [MarshalUsing(typeof(ComInterfaceMarshaller<object>))] out object ppObj);
Microsoft.DotNet.NativeWrapper (2)
Interop.cs (2)
512[MarshalUsing(typeof(ArrayMarshaller<string, nint>))] 513[MarshalUsing(typeof(PlatformStringMarshaller), ElementIndirectionDepth = 1)]
System.Data.Odbc (4)
src\runtime\src\libraries\Common\src\Interop\Interop.Odbc.cs (4)
42[MarshalUsing(typeof(HandleRefMarshaller))] 68[MarshalUsing(typeof(HandleRefMarshaller))] 74[MarshalUsing(typeof(HandleRefMarshaller))] 330[MarshalUsing(typeof(HandleRefMarshaller))]
System.Data.OleDb (3)
UnsafeNativeMethods.COMWrappers.cs (1)
19[MarshalUsing(typeof(UniqueComInterfaceMarshaller<IErrorInfo>))]
UnsafeNativeMethods.cs (2)
562[MarshalUsing(typeof(UniqueComInterfaceMarshaller<ISQLErrorInfo>))] 565[return: MarshalUsing(typeof(UniqueComInterfaceMarshaller<IErrorInfo>))]
System.Diagnostics.Process (4)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Access.cs (1)
24internal static partial int Access([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, AccessMode mode);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadLink.cs (1)
25private static partial int ReadLink([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, ref byte buffer, int bufferSize);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Stat.Span.cs (2)
13internal static partial int Stat([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, out FileStatus output); 16internal static partial int LStat([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, out FileStatus output);
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\Interop\Windows\WinHttp\Interop.winhttp.cs (1)
54[MarshalUsing(typeof(SimpleStringBufferMarshaller))] StringBuilder headers,
System.Private.CoreLib (7)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Access.cs (1)
24internal static partial int Access([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, AccessMode mode);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MkDir.cs (1)
13internal static partial int MkDir([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, int mode);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadLink.cs (1)
25private static partial int ReadLink([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, ref byte buffer, int bufferSize);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Rename.cs (2)
21internal static partial int Rename([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> oldPath, [MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> newPath);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Stat.Span.cs (2)
13internal static partial int Stat([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, out FileStatus output); 16internal static partial int LStat([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, out FileStatus output);
4 references to MarshalUsingAttribute
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\MarshalUsingAttribute.cs (3)
19/// Initializes a new instance of the <see cref="MarshalUsingAttribute" /> class that provides only size information. 27/// Initializes a new instance of the <see cref="MarshalUsingAttribute" /> class that provides a native marshalling type and optionally size information. 64/// Only one <see cref="MarshalUsingAttribute" /> with a given <see cref="ElementIndirectionDepth" /> can be provided on a given parameter or return value.
System.Runtime.InteropServices (1)
src\runtime\artifacts\obj\System.Runtime.InteropServices\Release\net12.0\System.Runtime.InteropServices.Forwards.cs (1)
117[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.Marshalling.MarshalUsingAttribute))]