95 int num =
chars.Length;
98 return Array.Empty<
byte>();
100 byte[]
array =
new byte[(num + 1) / 2];
119 for (i = 0; i <
chars.Length; i++)
121 if ((uint)num >= (uint)
bytes.Length)
static int FromChar(int c)
static string Xml_InvalidBinHexValue
static string Xml_InvalidBinHexValueOddCount
static byte[] Decode(char[] chars, bool allowOddChars)
override int Decode(string str, int startPos, int len)
static void Decode(ReadOnlySpan< char > chars, Span< byte > bytes, ref bool hasHalfByteCached, ref byte cachedHalfByte, out int charsDecoded, out int bytesDecoded)
override int Decode(char[] chars, int startPos, int len)
override void SetNextOutputBuffer(Array buffer, int index, int count)
override int DecodedCount
static bool IsWhiteSpace(char ch)