35 references to GetBytes
mscorlib (3)
system\bitconverter.cs (2)
118return GetBytes((int)value); 139return GetBytes(*(int*)&value);
system\globalization\sortversion.cs (1)
33byte[] b = BitConverter.GetBytes(effectiveId);
System (8)
net\System\Net\_DigestClient.cs (5)
1180BitConverter.GetBytes(initiatorType).CopyTo(formattedData, 0); 1181BitConverter.GetBytes(initiatorLength).CopyTo(formattedData, SizeOfInt); 1191BitConverter.GetBytes(acceptorType).CopyTo(formattedData, offset); 1192BitConverter.GetBytes(acceptorLength).CopyTo(formattedData, offset + SizeOfInt); 1202BitConverter.GetBytes(applicationDataLength).CopyTo(formattedData, offset);
net\System\Net\_SSPIWrapper.cs (1)
358var buffer = BitConverter.GetBytes(shutdownToken);
security\system\security\cryptography\bigint.cs (2)
273byte[] bytes = BitConverter.GetBytes(carry); 298byte[] bytes = BitConverter.GetBytes(carry);
System.Core (6)
System\Security\Cryptography\CapiNative.cs (1)
780SetKeyParameter(key, parameter, BitConverter.GetBytes(value));
System\Security\Cryptography\CngKey.cs (1)
104BitConverter.GetBytes((int)value),
System\Security\Cryptography\NCryptNative.cs (3)
963Buffer.BlockCopy(BitConverter.GetBytes((int)algorithmMagic), 0, blob, 0, sizeof(int)); 964Buffer.BlockCopy(BitConverter.GetBytes(xBytes.Length), 0, blob, sizeof(int), sizeof(int)); 1681SetProperty(ncryptObject, propertyName, BitConverter.GetBytes(value), propertyOptions);
System\Security\Cryptography\RsaCng.cs (1)
100BitConverter.GetBytes(KeySize),
System.Data (4)
fx\src\data\System\Data\Common\ObjectStorage.cs (1)
227values[recordNo] = BitConverter.GetBytes((Int32)value);
fx\src\data\System\Data\Sql\sqlnorm.cs (1)
393byte[] b = BitConverter.GetBytes((int) GetValue(fi, obj));
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (2)
521_stateObj.WriteByteArray(BitConverter.GetBytes(days), 3, 0); 590_stateObj.WriteByteArray(BitConverter.GetBytes(days), 3, 0); // date
System.IdentityModel (1)
System\IdentityModel\RsaSignatureCookieTransform.cs (1)
287byte[] signatureLength = BitConverter.GetBytes(signature.Length);
System.Messaging (2)
System\Messaging\ActiveXMessageFormatter.cs (1)
354byte[] bytes = BitConverter.GetBytes((int)obj);
System\Messaging\Message.cs (1)
2393Array.Copy(BitConverter.GetBytes(integerId), 0, bytes, GenericIdSize, 4);
System.Security (2)
system\security\cryptography\bigint.cs (2)
276byte[] bytes = BitConverter.GetBytes(carry); 301byte[] bytes = BitConverter.GetBytes(carry);
System.ServiceModel (4)
System\ServiceModel\Channels\NativeMsmqMessage.cs (1)
552Array.Copy(BitConverter.GetBytes(integerId), 0, bytes, guidSize, 4);
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (1)
347byte[] bytes = BitConverter.GetBytes((int)obj);
System\ServiceModel\Transactions\WsatProxy.cs (2)
421byte[] isoLevelBytes = BitConverter.GetBytes((int)ConvertIsolationLevel(isoLevel)); 425byte[] isoFlagsBytes = BitConverter.GetBytes((int)isoFlags);
System.Web (4)
Hosting\ISAPIWorkerRequest.cs (2)
2924byte[] offsetBytes = BitConverter.GetBytes(offset); 2925byte[] lengthBytes = BitConverter.GetBytes(length);
HttpRuntime.cs (1)
3367bufin = BitConverter.GetBytes(UnsafeNativeMethods.RESTRICT_BIN);
Security\AnonymousIdentificationModule.cs (1)
344byte [] bufIdLen = BitConverter.GetBytes(bufId.Length);
WindowsBase (1)
Base\MS\Internal\IO\Zip\ZipIOBlockManager.cs (1)
577byte[] tempBuffer = BitConverter.GetBytes(value);