9 references to TryWriteBytes
dotnet (6)
Commands\Test\MTP\IPC\NamedPipeServer.cs (2)
175if (!BitConverter.TryWriteBytes(bytes, sizeOfTheWholeMessage)) 184if (!BitConverter.TryWriteBytes(bytes, responseNamedPipeSerializer.Id))
Commands\Test\MTP\IPC\Serializers\BaseSerializer.cs (4)
48BitConverter.TryWriteBytes(len, stringutf8TotalBytes); 79if (BitConverter.TryWriteBytes(len, stringutf8TotalBytes)) 91if (BitConverter.TryWriteBytes(len, sizeInBytes)) 100BitConverter.TryWriteBytes(bytes, value);
System.Net.Sockets (1)
System\Net\Sockets\SocketPal.Unix.cs (1)
1411BitConverter.TryWriteBytes(optionOutValue, result);
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (1)
115bool success = TryWriteBytes(bytes, value);
System.Security.Cryptography (1)
System\Security\Cryptography\CngAlgorithmCore.cs (1)
67bool success = BitConverter.TryWriteBytes(keySizeBuffer, keySize);