66 references to AddrOfPinnedObject
aspire (2)
Processes\WindowsProcessInterop.cs (2)
408pinnedHandles.AddrOfPinnedObject(), 426pinnedJobHandles.AddrOfPinnedObject(),
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
673return handle.AddrOfPinnedObject();
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
673return handle.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();
Mono.Cecil.Pdb (1)
Mono.Cecil.Pdb\SymWriter.cs (1)
159 writer.SetSymAttribute (0, name, (uint) metadata.Length, handle.AddrOfPinnedObject ());
PresentationCore (3)
MS\Internal\FontCache\FontSource.cs (1)
438 (byte *)_memoryHandle.AddrOfPinnedObject(),
src\wpf\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());
System.Data.OleDb (3)
ColumnBinding.cs (3)
701ptr = _pinnedBuffer.AddrOfPinnedObject(); 748ptr = _pinnedBuffer.AddrOfPinnedObject(); 767ptr = _pinnedBuffer.AddrOfPinnedObject();
System.Diagnostics.EventLog (3)
System\Diagnostics\EventLog.cs (1)
902addresses[i] = handles[i].AddrOfPinnedObject();
System\Diagnostics\EventLogInternal.cs (2)
1387stringRoots[strIndex] = stringHandles[strIndex].AddrOfPinnedObject(); 1393sid, (short)strings.Length, rawData.Length, stringsRootHandle.AddrOfPinnedObject(), rawData);
System.DirectoryServices (2)
Interop\AdsValueHelper2.cs (2)
266adsvalue.pointer.value = _pinnedHandle.AddrOfPinnedObject(); 275adsvalue.octetString.value = _pinnedHandle.AddrOfPinnedObject();
System.Drawing.Common (1)
System\Drawing\Font.cs (1)
294Buffer.MemoryCopy(&nativeLogFont, (byte*)handle.AddrOfPinnedObject(), nativeSize, nativeSize);
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpHandler.cs (1)
1317pinnedHandle.AddrOfPinnedObject(),
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\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (1)
328datasTemp->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);
System.Security.Principal.Windows (1)
System\Security\Principal\SID.cs (1)
971SidArrayPtr[currentSid] = HandleArray[currentSid].AddrOfPinnedObject();
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceController.cs (1)
897bool result = Interop.Advapi32.StartService(serviceHandle, args.Length, argPtrsHandle.AddrOfPinnedObject());
System.Speech (29)
Internal\SapiInterop\SapiRecoInterop.cs (3)
478elements[i].pszDisplayText = handle.AddrOfPinnedObject(); 485elements[i].pszLexicalForm = handle.AddrOfPinnedObject(); 496elements[i].pszPronunciation = handle.AddrOfPinnedObject();
Internal\Synthesis\AudioBase.cs (4)
56Play(gc.AddrOfPinnedObject(), buffer.Length); 381IntPtr ptr = gc.AddrOfPinnedObject(); 404IntPtr ptr = gc.AddrOfPinnedObject(); 414byte[] ab = ToBytes(gc.AddrOfPinnedObject());
Internal\Synthesis\AudioDeviceOut.cs (4)
147Interop.WinMM.MMSYSERR result = Interop.WinMM.waveOutPrepareHeader(_hwo, waveHdr.AddrOfPinnedObject(), waveHeader.SizeHDR); 169result = Interop.WinMM.waveOutWrite(_hwo, waveHdr.AddrOfPinnedObject(), waveHeader.SizeHDR); 393_hwo, waveHeader.WAVEHDR.AddrOfPinnedObject(), waveHeader.SizeHDR); 418_hwo, waveHeader.WAVEHDR.AddrOfPinnedObject(), waveHeader.SizeHDR);
Internal\Synthesis\ConvertTextFrag.cs (4)
32sapiFrag.pNext = fFirst ? IntPtr.Zero : sapiFragLast.AddrOfPinnedObject(); 34sapiFrag.pTextStart = sapiFrag.gcText.AddrOfPinnedObject(); 68sapiState.pPhoneIds = sapiFrag.gcPhoneme.AddrOfPinnedObject(); 121return sapiFrag.gcSayAsCategory.AddrOfPinnedObject();
Internal\Synthesis\TTSEngineProxy.cs (3)
64IntPtr waveFormat = gc.AddrOfPinnedObject(); 151IntPtr waveFormat = gc.AddrOfPinnedObject(); 159_sapiEngine.Speak(0, ref formatId, waveFormat, spvTextFragment.AddrOfPinnedObject(), _iSite);
Internal\Synthesis\TTSVoice.cs (1)
102waveFormat = _engine.GetOutputFormat(targetWaveFormat != null ? targetFormat.AddrOfPinnedObject() : IntPtr.Zero);
Internal\Synthesis\WaveHeader.cs (1)
72_waveHdr.lpData = _gcHandle.AddrOfPinnedObject();
Recognition\RecognizerBase.cs (1)
1579IntPtr dataPtr = gcHandle.AddrOfPinnedObject();
Result\RecognitionResult.cs (4)
159IntPtr audioBuffer = gc.AddrOfPinnedObject(); 299IntPtr buffer = gc.AddrOfPinnedObject(); 360IntPtr buffer = gc.AddrOfPinnedObject(); 487alternate.InitializeFromSerializedBuffer(this, _serializedPhrase, gc.AddrOfPinnedObject(), _phraseBuffer!.Length, _isSapi53Header, _hasIPAPronunciation);
Result\RecognizedPhrase.cs (4)
169IntPtr buffer = gc.AddrOfPinnedObject(); 293IntPtr buffer = gc.AddrOfPinnedObject(); 415IntPtr buffer = gc.AddrOfPinnedObject(); 785IntPtr smlBuffer = gc.AddrOfPinnedObject();