146 if (
b ==
byte.MaxValue)
164 for (
int i = 0; i <
b2; i++)
175 if (!flag &&
b3 != 0 &&
b2 - i > 4)
184 if (num >
int.MaxValue)
189 if (flag && num < 128)
212 else if (!num.HasValue)
436 if (
value.Length > 0)
483 byte b =
source[source.Length - 1];
484 byte b2 = (byte)(
b & num);
495 if (
value.Length != 0)
524 Stack<(int, int,
bool, int)> stack =
null;
583 if (stack !=
null && stack.Count > 0)
585 (int, int,
bool, int)
tuple = stack.Pop();
600 if (stack ==
null || stack.Count <= 0)
623 if (
dest.Length < num)
762 byte b =
byte.MaxValue;
766 while (
b2 == 0 && data.Length != 0)
768 byte?
b3 = GetNextState(data[0]);
802 data = data.Slice(1);
823 if (data.Length != 0)
825 byte?
b4 = GetNextState(data[0]);
836 data = data.Slice(1);
856 if (data.Length != 0)
898 else if (!
num2.HasValue)
912 DateTimeOffset dateTimeOffset = (timeSpan.HasValue ?
new DateTimeOffset(
year, month, day, hour, num.Value,
num2.Value,
timeSpan.Value) :
new DateTimeOffset(
new DateTime(
year, month, day, hour, num.Value,
num2.Value)));
919 static byte? GetNextState(
byte octet)
1008 if (num == 0 || num == 65408)
1137 bitArray.Length =
length;
1146 for (
int i = 0; i <
valueSpan.Length; i++)
1152 if ((
b &
num4) != 0)
1164 for (
int i = 0; i <
value.Length; i++)
1171 b3 |= (byte)((
b & 1) *
b2);
1286 Stack<(int, int,
bool, int)> stack =
null;
1344 if (stack !=
null && stack.Count > 0)
1346 (int, int,
bool, int)
tuple = stack.Pop();
1361 if (stack ==
null || stack.Count <= 0)
1381 if (
dest.Length < num)
1429 for (i = 0; i <
source.Length; i++)
1729 result =
string.Empty;
1851 else if (data[0] != 43)
1855 data = data.Slice(1);
static unsafe void Clear(Array array)
static bool TryReadUInt16BigEndian(ReadOnlySpan< byte > source, out ushort value)
static void WriteInt64LittleEndian(Span< byte > destination, long value)
static bool TryParse(ReadOnlySpan< byte > source, out bool value, out int bytesConsumed, char standardFormat='\0')
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
static object ToObject(Type enumType, object value)
static byte Min(byte val1, byte val2)
static byte Max(byte val1, byte val2)
static int SizeOf(object structure)
static string ContentException_InvalidUnderCerOrDer_TryBer
static string Argument_Tag_NotCharacterString
static string ContentException_CerRequiresIndefiniteLength
static string ContentException_PrimitiveEncodingRequired
static string ContentException_EnumeratedValueTooBig
static string ContentException_WrongTag
static string ContentException_NamedBitListValueTooBig
static string ContentException_DefaultMessage
static string ContentException_InvalidUnderCer_TryBerOrDer
static string Format(string resourceFormat, object p1)
static string ContentException_ConstructedEncodingRequired
static string Argument_EnumeratedValueRequiresNonFlagsEnum
static string ContentException_LengthExceedsPayload
static string Argument_SourceOverlapsDestination
static string Argument_EnumeratedValueBackingTypeNotSupported
static string ContentException_LengthTooBig
static string ContentException_LengthRuleSetConstraint
static string Argument_NamedBitListRequiresFlagsEnum
static string ContentException_InvalidUnderDer_TryBerOrCer
static string ContentException_SetOfNotSorted
static string Argument_UniversalValueIsFixed
static void Return(byte[] array, int clearSize=-1)
static byte[] Rent(int minimumLength)
virtual int GetCharCount(byte[] bytes)
virtual char[] GetChars(byte[] bytes)
unsafe string GetString(byte *bytes, int byteCount)
static readonly TimeSpan Zero