Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Decode() [1/4]

static byte[] System.Xml.BinHexDecoder.Decode ( char[] chars,
bool allowOddChars )
inlinestatic

Definition at line 89 of file BinHexDecoder.cs.

90 {
91 if (chars == null)
92 {
93 throw new ArgumentNullException("chars");
94 }
95 int num = chars.Length;
96 if (num == 0)
97 {
98 return Array.Empty<byte>();
99 }
100 byte[] array = new byte[(num + 1) / 2];
101 bool hasHalfByteCached = false;
102 byte cachedHalfByte = 0;
105 {
107 }
108 if (bytesDecoded < array.Length)
109 {
110 Array.Resize(ref array, bytesDecoded);
111 }
112 return array;
113 }
static string Xml_InvalidBinHexValueOddCount
Definition SR.cs:114
Definition SR.cs:7
override int Decode(char[] chars, int startPos, int len)

References System.array, System.chars, System.Xml.BinHexDecoder.Decode(), System.Xml.Dictionary, System.SR.Xml_InvalidBinHexValueOddCount, and System.Xml.XmlException.