13 references to FromSize
System.ServiceModel (13)
System\ServiceModel\Channels\PeerUnsafeNativeCryptMethods.cs (1)
184data = CriticalAllocHandle.FromSize(size);
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (2)
358CriticalAllocHandle result = CriticalAllocHandle.FromSize(size); 369CriticalAllocHandle result = CriticalAllocHandle.FromSize(guidSize);
System\ServiceModel\Channels\PnrpPeerResolver.cs (10)
1256socketAddress.lpSockAddr = CriticalAllocHandle.FromSize(socketAddress.iSockaddrLength); 1266socketAddress.lpSockAddr = CriticalAllocHandle.FromSize(socketAddress.iSockaddrLength); 1386blob.pBlobData = CriticalAllocHandle.FromSize(blobSize + Marshal.SizeOf(typeof(BlobNative))); 1403blob.pBlobData = CriticalAllocHandle.FromSize(blobSize + Marshal.SizeOf(typeof(BlobNative))); 1452CriticalAllocHandle result = CriticalAllocHandle.FromSize(CalculateSize(safeQuerySet)); 1725dataPtr = CriticalAllocHandle.FromSize(size); 1802CriticalAllocHandle nativeQuerySetPtr = CriticalAllocHandle.FromSize(size); 1825nativeQuerySetPtr = CriticalAllocHandle.FromSize(size); 2058CriticalAllocHandle nativeQuerySetPtr = CriticalAllocHandle.FromSize(size); 2081nativeQuerySetPtr = CriticalAllocHandle.FromSize(size);