6 references to TryWriteBytes
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.Integer.cs (1)
287
value.
TryWriteBytes
(_buffer.AsSpan(_offset), out int bytesWritten, isBigEndian: true);
System.Runtime.Numerics (4)
System\Number.BigInteger.cs (2)
561
bool success = value.
TryWriteBytes
(bits, out bytesWrittenOrNeeded);
642
bool success = value.
TryWriteBytes
(bytes, out _);
System\Numerics\BigInteger.cs (2)
1291
/// <summary>Gets the number of bytes that will be output by <see cref="ToByteArray(bool, bool)"/> and <see cref="
TryWriteBytes
(Span{byte}, out int, bool, bool)"/>.</summary>
1310
/// <summary>Shared logic for <see cref="ToByteArray(bool, bool)"/>, <see cref="
TryWriteBytes
(Span{byte}, out int, bool, bool)"/>, and <see cref="GetByteCount"/>.</summary>
System.Security.Cryptography (1)
src\libraries\Common\src\System\Security\Cryptography\KeyBlobHelpers.cs (1)
55
if (value.
TryWriteBytes
(target, out int bytesWritten, isUnsigned: true, isBigEndian: true))