23 public int Compare((
int,
int) x, (
int,
int) y)
66 return ItemType ==
other.ItemType;
82 return (
Tag,
Offset, ItemType).GetHashCode();
213 return Array.Empty<
byte>();
371 return new Scope(
this);
432 int num = end -
start;
462 int num2 = span.Length - 1;
522 return (lastByte & num) == 0;
629 long num = dateTimeOffset.Ticks % 10000000;
654 if (!
Utf8Formatter.
TryFormat(
year,
span.Slice(0, 4),
out var bytesWritten2,
format) || !
Utf8Formatter.
TryFormat(month,
span.Slice(4, 2),
out bytesWritten2,
format2) || !
Utf8Formatter.
TryFormat(day,
span.Slice(6, 2),
out bytesWritten2,
format2) || !
Utf8Formatter.
TryFormat(hour,
span.Slice(8, 2),
out bytesWritten2,
format2) || !
Utf8Formatter.
TryFormat(minute,
span.Slice(10, 2),
out bytesWritten2,
format2) || !
Utf8Formatter.
TryFormat(second,
span.Slice(12, 2),
out bytesWritten2,
format2))
703 int num = ((
value >= -128) ? 1 : ((
value >= -32768) ? 2 : ((
value >= -8388608) ? 3 : ((
value >=
int.MinValue) ? 4 : ((
value >= -549755813888
L) ? 5 : ((
value >= -140737488355328
L) ? 6 : ((
value < -36028797018963968
L) ? 8 : 7)))))));
720 int num = ((
value < 128) ? 1 : ((
value < 32768) ? 2 : ((
value < 8388608) ? 3 : ((
value < 2147483648
u) ? 4 : ((
value < 549755813888
L) ? 5 : ((
value < 140737488355328
L) ? 6 : ((
value < 36028797018963968
L) ? 7 : ((
value >= 9223372036854775808
uL) ? 9 : 8))))))));
766 if (
value.Length > 1)
768 ushort num = (ushort)((
value[0] << 8) |
value[1]);
865 if (
value.Count == 0)
1019 else if (num == 0 || num ==
oidValue.Length - 1)
1024 for (
int i = 0; i < num; i++)
1026 if (i > 0 &&
zero == 0
L)
1039 if (c >=
'0' && c <=
'9')
1194 if (!
Utf8Formatter.
TryFormat(
year % 100,
span.Slice(0, 2),
out var bytesWritten,
format) || !
Utf8Formatter.
TryFormat(month,
span.Slice(2, 2),
out bytesWritten,
format) || !
Utf8Formatter.
TryFormat(day,
span.Slice(4, 2),
out bytesWritten,
format) || !
Utf8Formatter.
TryFormat(hour,
span.Slice(6, 2),
out bytesWritten,
format) || !
Utf8Formatter.
TryFormat(minute,
span.Slice(8, 2),
out bytesWritten,
format) || !
Utf8Formatter.
TryFormat(second,
span.Slice(10, 2),
out bytesWritten,
format))
static void Reverse(Array array)
static unsafe void Clear(Array array)
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
static bool TryFormat(bool value, Span< byte > destination, out int bytesWritten, StandardFormat format=default(StandardFormat))
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static long ToInt64(object? value)
static ulong ToUInt64(object? value)
static byte Min(byte val1, byte val2)
static int DivRem(int a, int b, out int result)
static string Argument_DestinationTooShort
static string Argument_UnusedBitWasSet
static string Argument_UnusedBitCountMustBeZero
static string Argument_EnumeratedValueRequiresNonFlagsEnum
static string Argument_IntegerRedundantByte
static string Argument_WriteEncodedValue_OneValueAtATime
static string Argument_InvalidOidValue
static string Argument_NamedBitListRequiresFlagsEnum
static string Argument_IntegerCannotBeEmpty
static string Argument_UnusedBitCountRange
static string AsnWriter_PopWrongTag
static string AsnWriter_EncodeUnbalancedStack
static string Argument_UniversalValueIsFixed
static void Return(byte[] array, int clearSize=-1)
static byte[] Rent(int minimumLength)
virtual byte[] GetBytes(char[] chars)
virtual int GetByteCount(char[] chars)