17 return span.
Slice(1).ToArray();
31 if (span.
Length > 1 && span[0] == 0)
33 return span.
Slice(1).ToArray();
41 if (
value.TryWriteBytes(
array, out var bytesWritten, isUnsigned:
true, isBigEndian:
true))
58 for (i = 1; i < integer.
Length; i++)
60 if (integer[i] >= 128)
74 integer = integer.
Slice(i);
76 writer.WriteIntegerUnsigned(integer);
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
static string Cryptography_Der_Invalid_Encoding
static string Cryptography_NotValidPublicOrPrivateKey
static byte[] ToUnsignedIntegerBytes(this ReadOnlyMemory< byte > memory)
static byte[] ExportKeyParameter(this BigInteger value, int length)
static void WriteKeyParameterInteger(this AsnWriter writer, ReadOnlySpan< byte > integer)
static byte[] ToUnsignedIntegerBytes(this ReadOnlyMemory< byte > memory, int length)
unsafe ReadOnlySpan< T > Span
void CopyTo(Span< T > destination)
ReadOnlySpan< T > Slice(int start)