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

◆ Decode() [4/4]

override int System.Xml.BinHexDecoder.Decode ( string str,
int startPos,
int len )
inlinepackage

Definition at line 48 of file BinHexDecoder.cs.

49 {
50 if (str == null)
51 {
52 throw new ArgumentNullException("str");
53 }
54 if (len < 0)
55 {
56 throw new ArgumentOutOfRangeException("len");
57 }
58 if (startPos < 0)
59 {
60 throw new ArgumentOutOfRangeException("startPos");
61 }
62 if (str.Length - startPos < len)
63 {
64 throw new ArgumentOutOfRangeException("len");
65 }
66 if (len == 0)
67 {
68 return 0;
69 }
72 return charsDecoded;
73 }
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.Xml.BinHexDecoder.Decode(), System.Xml.Dictionary, System.len, and System.str.