12 references to ToByteArray
System.Formats.Cbor (1)
System\Formats\Cbor\CborHelpers.netcoreapp.cs (1)
35
=> value.
ToByteArray
(isUnsigned: true, isBigEndian: true);
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (3)
1219
public byte[] ToByteArray() =>
ToByteArray
(isUnsigned: false, isBigEndian: false);
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 (8)
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (4)
72
P = parms.P.
ToByteArray
(isUnsigned: true, isBigEndian: true),
73
Q = parms.Q.
ToByteArray
(isUnsigned: true, isBigEndian: true),
135
P = parms.P.
ToByteArray
(isUnsigned: true, isBigEndian: true),
136
Q = parms.Q.
ToByteArray
(isUnsigned: true, isBigEndian: true),
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (4)
42
byte[] n = key.Modulus.
ToByteArray
(isUnsigned: true, isBigEndian: true);
48
Exponent = key.PublicExponent.
ToByteArray
(isUnsigned: true, isBigEndian: true),
67
Modulus = key.Modulus.
ToByteArray
(isUnsigned: true, isBigEndian: true),
68
Exponent = key.PublicExponent.
ToByteArray
(isUnsigned: true, isBigEndian: true),