28 references to GetBytes
BuildActionTelemetryTable (1)
src\Workspaces\Core\Portable\Shared\Extensions\TelemetryExtensions.cs (1)
28var suffixBytes = BitConverter.GetBytes(suffix).Concat(new byte[4]).ToArray();
csc (2)
src\Compilers\Core\CommandLine\BuildProtocol.cs (2)
184await outStream.WriteAsync(BitConverter.GetBytes(length), 0, 4, 300await outStream.WriteAsync(BitConverter.GetBytes(length),
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingBasedDataProtectorTests.cs (1)
626.Concat(BitConverter.GetBytes(IPAddress.HostToNetworkOrder(purposes.Length))); // purposeCount
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\DistributedCacheTagHelperService.cs (1)
168var keyLength = BitConverter.GetBytes(serializedKey.Length);
Microsoft.Build (1)
CommunicationsUtilities.cs (1)
463byte[] bytes = BitConverter.GetBytes(value);
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\CommandLine\BuildProtocol.cs (2)
184await outStream.WriteAsync(BitConverter.GetBytes(length), 0, 4, 300await outStream.WriteAsync(BitConverter.GetBytes(length),
Microsoft.CodeAnalysis.UnitTests (4)
EmbeddedTextTests.cs (4)
165AssertEx.Equal(BitConverter.GetBytes(bytes.Length), text.Blob.Take(4)); 180AssertEx.Equal(BitConverter.GetBytes(bytes.Length), text.Blob.Take(4)); 193AssertEx.Equal(BitConverter.GetBytes(Encoding.Unicode.GetPreamble().Length + LargeSource.Length * sizeof(char)), text.Blob.Take(4)); 244AssertEx.Equal(BitConverter.GetBytes(bytes.Length), text.Blob.Take(4));
Microsoft.CodeAnalysis.Workspaces (1)
Shared\Extensions\TelemetryExtensions.cs (1)
28var suffixBytes = BitConverter.GetBytes(suffix).Concat(new byte[4]).ToArray();
Microsoft.Data.Analysis.Tests (1)
DataFrameTests.Utils.cs (1)
66byte[] offsetValueBytes = BitConverter.GetBytes(offsetValue);
Microsoft.DotNet.Build.Tasks.Workloads (2)
Utils.cs (2)
143Buffer.BlockCopy(BitConverter.GetBytes(timeLow), 0, hashBuffer, 0, 4); 159Buffer.BlockCopy(BitConverter.GetBytes(timeLow), 0, hash, 0, 4);
Microsoft.ML.Vision (2)
ImageClassificationTrainer.cs (2)
891featuresWriter.Write(BitConverter.GetBytes(examples), 0, sizeof(int)); 892featuresWriter.Write(BitConverter.GetBytes(featureLength), 0, sizeof(int));
MSBuild (1)
CommunicationsUtilities.cs (1)
463byte[] bytes = BitConverter.GetBytes(value);
MSBuildTaskHost (1)
CommunicationsUtilities.cs (1)
463byte[] bytes = BitConverter.GetBytes(value);
Replay (2)
src\Compilers\Core\CommandLine\BuildProtocol.cs (2)
184await outStream.WriteAsync(BitConverter.GetBytes(length), 0, 4, 300await outStream.WriteAsync(BitConverter.GetBytes(length),
Roslyn.Test.PdbUtilities (1)
Reader\MockSymUnmanagedReader.cs (1)
409var intBytes = BitConverter.GetBytes(i);
System.Data.Common (1)
System\Data\Common\ObjectStorage.cs (1)
267_values[recordNo] = BitConverter.GetBytes((int)value);
vbc (2)
src\Compilers\Core\CommandLine\BuildProtocol.cs (2)
184await outStream.WriteAsync(BitConverter.GetBytes(length), 0, 4, 300await outStream.WriteAsync(BitConverter.GetBytes(length),
VBCSCompiler (2)
src\Compilers\Core\CommandLine\BuildProtocol.cs (2)
184await outStream.WriteAsync(BitConverter.GetBytes(length), 0, 4, 300await outStream.WriteAsync(BitConverter.GetBytes(length),