25 references to AddrOfPinnedObject
aspire (1)
Processes\DetachedProcessLauncher.Windows.cs (1)
68pinnedHandles.AddrOfPinnedObject(),
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\ResponseBody.cs (1)
275SetDataChunkWithPinnedData(chunks, ref chunkIndex, new ReadOnlySpan<byte>((void*)(handle.AddrOfPinnedObject() + buffer.Offset), buffer.Count));
Microsoft.ML.LightGbm (2)
WrappedLightGbmDataset.cs (2)
61ptrArrayValues[i] = (double*)gcValues[i].AddrOfPinnedObject().ToPointer(); 63ptrArrayIndices[i] = (int*)gcIndices[i].AddrOfPinnedObject().ToPointer();
Microsoft.ML.Mkl.Components (5)
SymSgdClassificationTrainer.cs (5)
886int* pIndicesArray = (int*)indicesGcHandle.Value.AddrOfPinnedObject(); 889float* pValuesArray = (float*)valuesGcHandle.Value.AddrOfPinnedObject(); 905shouldInitialize, (State*)stateGCHandle.AddrOfPinnedObject(), info); 920MapBackWeightVector(pweightVector, (State*)stateGCHandle.AddrOfPinnedObject()); 928DeallocateSequentially((State*)stateGCHandle.AddrOfPinnedObject());
Microsoft.ML.Vision (2)
ImageClassificationTrainer.cs (2)
976IntPtr featureBufferPtr = featureBufferHandle.AddrOfPinnedObject(); 978IntPtr labelBufferPtr = labelBufferHandle.AddrOfPinnedObject();
PresentationCore (3)
MS\Internal\FontCache\FontSource.cs (1)
402 (byte *)_memoryHandle.AddrOfPinnedObject(),
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (2)
221return new IntPtr(((char*)gcHandle.AddrOfPinnedObject().ToPointer()) + offset); 320return new IntPtr(((char*)gcHandle.AddrOfPinnedObject().ToPointer()) + offset);
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
287return (((Array)m._gchandle.Target).Length, m._gchandle.AddrOfPinnedObject());
Roslyn.Test.PdbUtilities (1)
Shared\DummyMetadataImport.cs (1)
67ppvSig = (byte*)pinnedBuffer.AddrOfPinnedObject();
System.Drawing.Common (1)
System\Drawing\Font.cs (1)
294Buffer.MemoryCopy(&nativeLogFont, (byte*)handle.AddrOfPinnedObject(), nativeSize, nativeSize);
System.Net.Sockets (3)
System\Net\Sockets\SocketPal.Unix.cs (3)
313iovecs[i].Base = &((byte*)handles[i].AddrOfPinnedObject())[buffer.Offset + startOffset]; 427iovecs[i].Base = &((byte*)handles[i].AddrOfPinnedObject())[buffer.Offset]; 566iovecs[i].Base = &((byte*)handles[i].AddrOfPinnedObject())[buffer.Offset];
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (1)
327datasTemp->DataPointer = pinsTemp->AddrOfPinnedObject();
System.Reflection.Metadata (2)
System\Reflection\Internal\Utilities\PinnedObject.cs (1)
50public unsafe byte* Pointer => (byte*)_handle.AddrOfPinnedObject();
System\Reflection\Metadata\Internal\VirtualHeap.cs (1)
35new MemoryBlock((byte*)Handle.AddrOfPinnedObject(), Length);
TlsFeaturesObserve (2)
HttpSys\HttpSysConfigurator.cs (2)
30var pIpPort = sockAddrHandle.AddrOfPinnedObject(); 42pSslHash = handleHash.AddrOfPinnedObject(),