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

◆ Decode() [2/4]

override int System.Xml.BinHexDecoder.Decode ( char[] chars,
int startPos,
int len )
inlinepackage

Definition at line 21 of file BinHexDecoder.cs.

22 {
23 if (chars == null)
24 {
25 throw new ArgumentNullException("chars");
26 }
27 if (len < 0)
28 {
29 throw new ArgumentOutOfRangeException("len");
30 }
31 if (startPos < 0)
32 {
33 throw new ArgumentOutOfRangeException("startPos");
34 }
35 if (chars.Length - startPos < len)
36 {
37 throw new ArgumentOutOfRangeException("len");
38 }
39 if (len == 0)
40 {
41 return 0;
42 }
45 return charsDecoded;
46 }
override int Decode(char[] chars, int startPos, int len)

References System.Xml.BinHexDecoder._buffer, System.Xml.BinHexDecoder._cachedHalfByte, System.Xml.BinHexDecoder._curIndex, System.Xml.BinHexDecoder._endIndex, System.Xml.BinHexDecoder._hasHalfByteCached, System.chars, System.Xml.BinHexDecoder.Decode(), System.Xml.Dictionary, and System.len.

Referenced by System.Xml.BinHexDecoder.Decode(), System.Xml.BinHexDecoder.Decode(), System.Xml.BinHexDecoder.Decode(), and System.Xml.XmlConvert.FromBinHexString().