42 references to Pinned
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\ResponseBody.cs (1)
281handle = GCHandle.Alloc(buffer.Array, GCHandleType.Pinned);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
2473Dim pinnedPEImage = GCHandle.Alloc(moduleBytes.ToArray(), GCHandleType.Pinned)
Microsoft.ML.LightGbm (2)
WrappedLightGbmDataset.cs (2)
60gcValues[i] = GCHandle.Alloc(sampleValuePerColumn[i], GCHandleType.Pinned); 62gcIndices[i] = GCHandle.Alloc(sampleIndicesPerColumn[i], GCHandleType.Pinned);
Microsoft.ML.Mkl.Components (2)
SymSgdClassificationTrainer.cs (2)
346GcHandle = GCHandle.Alloc(Buffer, GCHandleType.Pinned); 739stateGCHandle = GCHandle.Alloc(state, GCHandleType.Pinned);
Microsoft.ML.Vision (2)
ImageClassificationTrainer.cs (2)
991var featureBufferHandle = GCHandle.Alloc(featuresBuffer, GCHandleType.Pinned); 993var labelBufferHandle = GCHandle.Alloc(labelBuffer, GCHandleType.Pinned);
PresentationCore (3)
MS\Internal\FontCache\FontSource.cs (1)
397_memoryHandle = GCHandle.Alloc(bits, GCHandleType.Pinned);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (2)
220gcHandle = GCHandle.Alloc(_characterArray, GCHandleType.Pinned); 319gcHandle = GCHandle.Alloc(_string, GCHandleType.Pinned);
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (2)
51m._gchandle = GCHandle.Alloc(value, GCHandleType.Pinned); 276public MarshalerArray(Array array) => _gchandle = GCHandle.Alloc(array, GCHandleType.Pinned);
Roslyn.Test.PdbUtilities (1)
Shared\DummyMetadataImport.cs (1)
66GCHandle pinnedBuffer = GCHandle.Alloc(signature, GCHandleType.Pinned);
System.Drawing.Common (1)
System\Drawing\Font.cs (1)
293GCHandle handle = GCHandle.Alloc(logFont, GCHandleType.Pinned);
System.Net.Sockets (3)
System\Net\Sockets\SocketPal.Unix.cs (3)
311handles[i] = GCHandle.Alloc(buffer.Array, GCHandleType.Pinned); 425handles[i] = GCHandle.Alloc(buffer.Array, GCHandleType.Pinned); 564handles[i] = GCHandle.Alloc(buffer.Array, GCHandleType.Pinned);
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
241GCHandle handle = GCHandle.Alloc(_values, GCHandleType.Pinned);
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
620rgGCHandle[i] = GCHandle.Alloc(dataRefObj[i], GCHandleType.Pinned);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (1)
326*pinsTemp = GCHandle.Alloc(value, GCHandleType.Pinned);
src\libraries\System.Private.CoreLib\src\System\IO\PinnedBufferMemoryStream.cs (1)
22_pinningHandle = GCHandle.Alloc(array, GCHandleType.Pinned);
src\libraries\System.Private.CoreLib\src\System\Memory.cs (2)
401GCHandle handle = GCHandle.Alloc(tmpObject, GCHandleType.Pinned); 420GCHandle handle = GCHandle.Alloc(tmpObject, GCHandleType.Pinned);
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (2)
316GCHandle handle = GCHandle.Alloc(tmpObject, GCHandleType.Pinned); 335GCHandle handle = GCHandle.Alloc(tmpObject, GCHandleType.Pinned);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (3)
37if ((uint)type > (uint)GCHandleType.Pinned) // IMPORTANT: This must be kept in sync with the GCHandleType enum. 42if (type == GCHandleType.Pinned && !Marshal.IsPinnable(value)) 49if (type == GCHandleType.Pinned)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PinnedGCHandle.T.cs (2)
15/// <para>This type corresponds to <see cref="GCHandleType.Pinned"/>.</para> 37_handle = GCHandle.InternalAlloc(target, GCHandleType.Pinned);
src\libraries\System.Private.CoreLib\src\System\Threading\Overlapped.cs (2)
170GCHandleRef(pNativeOverlapped, (nuint)(i + 1)) = GCHandle.Alloc(objArray[i], GCHandleType.Pinned); 176GCHandleRef(pNativeOverlapped, 1) = GCHandle.Alloc(userData, GCHandleType.Pinned);
src\libraries\System.Private.CoreLib\src\System\Threading\Win32ThreadPoolNativeOverlapped.cs (2)
140data._pinnedData[i] = GCHandle.Alloc(objArray[i], GCHandleType.Pinned); 150data._pinnedData[0] = GCHandle.Alloc(pinData, GCHandleType.Pinned);
System.Private.Windows.Core (1)
Windows\Win32\System\Variant\VARIANT.cs (1)
268pin = GCHandle.Alloc(array, GCHandleType.Pinned);
System.Reflection.Metadata (2)
System\Reflection\Internal\Utilities\PinnedObject.cs (1)
28_handle = GCHandle.Alloc(obj, GCHandleType.Pinned);
System\Reflection\Metadata\Internal\VirtualHeap.cs (1)
103var blob = new PinnedBlob(GCHandle.Alloc(value, GCHandleType.Pinned), value.Length);
System.Resources.Extensions (1)
src\libraries\System.Private.CoreLib\src\System\IO\PinnedBufferMemoryStream.cs (1)
22_pinningHandle = GCHandle.Alloc(array, GCHandleType.Pinned);
System.Security.Cryptography (1)
System\Security\Cryptography\CryptoStream.cs (1)
724GCHandle pinHandle = GCHandle.Alloc(rentedBuffer, GCHandleType.Pinned);
TlsFeaturesObserve (2)
HttpSys\HttpSysConfigurator.cs (2)
34var handleHash = GCHandle.Alloc(hash, GCHandleType.Pinned); 92var sockAddrHandle = GCHandle.Alloc(sockAddrStructureBytes, GCHandleType.Pinned);