67 references to ToPointer
mscorlib (24)
microsoft\win32\registrykey.cs (2)
1527
*(char*)(currentPtr.
ToPointer
()) = '\0';
1531
*(char*)(currentPtr.
ToPointer
()) = '\0';
system\reflection\fieldinfo.cs (1)
947
m_fieldType = new Signature(fieldMarshal.Signature.
ToPointer
(),
system\reflection\mdimport.cs (1)
188
return ((byte*)m_constArray.
ToPointer
())[index];
system\reflection\module.cs (3)
716
if (*(MdSigCallingConvention*)sig.Signature.
ToPointer
() == MdSigCallingConvention.Field)
801
if (*(MdSigCallingConvention*)sig.Signature.
ToPointer
() != MdSigCallingConvention.Field)
893
if (*(MdSigCallingConvention*)sig.Signature.
ToPointer
() == MdSigCallingConvention.Field)
system\reflection\pointer.cs (1)
35
_ptr = ((IntPtr)(info.GetValue("_ptr", typeof(IntPtr)))).
ToPointer
();
system\reflection\propertyinfo.cs (1)
264
m_signature = new Signature(sig.Signature.
ToPointer
(), (int)sig.Length, m_declaringType);
system\reflection\strongnamekeypair.cs (1)
165
Buffer.Memcpy(publicKey, 0, (byte*)(pbPublicKey.
ToPointer
()), 0, cbPublicKey);
system\runtimehandles.cs (1)
69
int* arModifiers = (int*)pModifiers.
ToPointer
();
system\security\securestring.cs (4)
502
Buffer.Memcpy((byte*) ptr.
ToPointer
(), bufferPtr, length *2);
556
Buffer.Memcpy((byte*) ptr.
ToPointer
(), bufferPtr, length *2);
557
char * endptr = (char *) ptr.
ToPointer
();
622
GetAnsiBytes((byte *)ptr.
ToPointer
(), byteCount);
system\stubhelpers.cs (8)
277
*((uint *)pNativeBuffer.
ToPointer
()) = lengthInBytes;
279
ptrToFirstChar = (byte *)pNativeBuffer.
ToPointer
() + 4;
285
ptrToFirstChar = (byte *)Win32Native.SysAllocStringByteLen(null, lengthInBytes).
ToPointer
();
346
ret.SetTrailByte(((byte *)bstr.
ToPointer
())[length - 1]);
1224
StubHelpers.FmtClassUpdateNativeInternal(pManagedHome, (byte *)pNativeHome.
ToPointer
(), ref cleanupWorkList);
1299
StubHelpers.FmtClassUpdateCLRInternal(pManagedHome, (byte *)pNativeHome.
ToPointer
());
1305
sbyte* ptr = (sbyte*)pNativeHome.
ToPointer
();
1312
char* ptr = (char*)pNativeHome.
ToPointer
();
system\text\stringbuilder.cs (1)
1890
byte* dstPtr = (byte*) dest.
ToPointer
();
PresentationCore (12)
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
635
(MS.Win32.Recognizer.PACKET_PROPERTY*)(packetDescription.pPacketProperties.
ToPointer
());
670
(MS.Win32.Recognizer.PACKET_PROPERTY*)( pd.pPacketProperties.
ToPointer
( ) );
Core\CSharp\MS\Internal\Shaping\TypefaceMap.cs (1)
127
(ushort*)ptext.
ToPointer
(),
Core\CSharp\System\Windows\Interop\D3DImage.cs (3)
786
data.hEvent = (ulong)hDuplicate.
ToPointer
();
876
data.pInteropDeviceBitmap = (ulong)_pInteropDeviceBitmap.DangerousGetHandle().
ToPointer
();
893
data.pSoftwareBitmap = (ulong)_softwareCopy.WicSourceHandle.DangerousGetHandle().
ToPointer
();
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (3)
1093
byte* pDest = (byte*)_backBuffer.
ToPointer
();
1097
byte* pSource = (byte*)sourceBuffer.
ToPointer
();
1442
command.SwDoubleBufferedBitmap = (UInt64) _pDoubleBufferedBitmap.DangerousGetHandle().
ToPointer
();
Graphics\include\exports.cs (1)
2484
UIntPtr hWndUIntPtr = new UIntPtr(hWnd.
ToPointer
());
Shared\MS\Internal\CharacterBuffer.cs (2)
241
return new IntPtr(((char*)gcHandle.AddrOfPinnedObject().
ToPointer
()) + offset);
356
return new IntPtr(((char*)gcHandle.AddrOfPinnedObject().
ToPointer
()) + offset);
PresentationFramework (1)
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
1542
byte* p = (byte*)reconv.
ToPointer
();
System (5)
compmod\microsoft\win32\SafeNativeMethods.cs (1)
176
return Interlocked.CompareExchange(ref *(int *)pDestination.
ToPointer
(), exchange, compare);
compmod\System\Runtime\InteropServices\StandardOleMarshalObject.cs (4)
82
IntPtr vtable = *(IntPtr*)pStandardMarshal.
ToPointer
();
83
IntPtr method = *((IntPtr*)vtable.
ToPointer
() + 4); // GetMarshalSizeMax is 4th slot
105
IntPtr vtable = *(IntPtr *)pStandardMarshal.
ToPointer
();
106
IntPtr method = *((IntPtr *)vtable.
ToPointer
() + 5); // GetMarshalSizeMax is 5th slot
System.Core (1)
System\Security\Cryptography\CapiNative.cs (1)
990
IntPtr pBase = new IntPtr((byte*)handle.
ToPointer
() + offset);
System.Data (2)
fx\src\data\System\Data\Common\SafeNativeMethods.cs (2)
59
IntPtr actualPtr = *(IntPtr *)lpAddress.
ToPointer
();
63
actualPtr = Interlocked.CompareExchange(ref *(IntPtr *)lpAddress.
ToPointer
(), lpValue, previousPtr);
System.Drawing (2)
commonui\System\Drawing\Icon.cs (2)
928
byte* candidate = unchecked(((byte*)bmpData.Scan0.
ToPointer
()) + (i * bmpData.Stride) + j);
976
uint * pixelPtr = (uint*)bmpdata.Scan0.
ToPointer
();
System.IdentityModel (1)
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (1)
230
KERB_CERTIFICATE_S4U_LOGON* pInfo = (KERB_CERTIFICATE_S4U_LOGON*)pLogonInfo.DangerousGetHandle().
ToPointer
();
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\PolicyChain.cs (1)
66
pos = new IntPtr((long)(((ulong)pos.
ToPointer
()) + (ulong)elementSize));
System.ServiceModel (2)
System\ServiceModel\Channels\ChannelBindingUtility.cs (2)
243
byte* sourceBuffer = (byte*)source.DangerousGetHandle().
ToPointer
();
244
byte* destinationBuffer = (byte*)this.handle.
ToPointer
();
System.Web (9)
Hosting\IIS7WorkerRequest.cs (8)
2097
int * indices = (int*) diffIndices.
ToPointer
();
2098
IntPtr * snapshotNames = (IntPtr *) names.
ToPointer
();
2099
IntPtr * snapshotValues = (IntPtr *) values.
ToPointer
();
2139
int * knownIndices = (int*) diffKnownIndices.
ToPointer
();
2140
IntPtr * snapshot = (IntPtr *) knownHeaderSnapshot.
ToPointer
();
2201
int * unknownIndices = (int*) diffUnknownIndices.
ToPointer
();
2202
IntPtr * snapshotNames = (IntPtr *) unknownHeaderSnapshotNames.
ToPointer
();
2203
IntPtr * snapshotValues = (IntPtr *) unknownHeaderSnapshotValues.
ToPointer
();
HttpWriter.cs (1)
341
byte * p = (byte*) _data.
ToPointer
();
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ImageList.cs (1)
671
byte* candidate = ((byte*)bmpData.Scan0.
ToPointer
()) + offsetRow + j;
UIAutomationClientsideProviders (6)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (4)
97
IntPtr remoteTextArea = new IntPtr((byte*)rmem.Address.
ToPointer
() + cbSize);
104
*(int*)((byte*)pszText.
ToPointer
()) = rmem.Address.ToInt32() + cbSize;
108
*(IntPtr*)((byte*)pszText.
ToPointer
()) = remoteTextArea;
131
rmem.ReadFrom(new IntPtr((byte*)rmem.Address.
ToPointer
() + cbSize), new IntPtr(pchRes), new IntPtr(maxLength * sizeof(char)));
MS\Internal\AutomationProxies\Misc.cs (2)
598
VirtualAlloc(new IntPtr((byte *)memAddr.
ToPointer
() + cbSize - pageSize), new UIntPtr(pageSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_NOACCESS);
606
String str = new string((char*)memAddr.
ToPointer
(), 0, maxLength);