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

◆ GetPosition()

void System.Xml.XmlUTF8TextReader.GetPosition ( out int row,
out int column )
inlineprivate

Definition at line 945 of file XmlUTF8TextReader.cs.

946 {
947 if (_rowOffsets == null)
948 {
949 _rowOffsets = base.BufferReader.GetRows();
950 }
951 int offset = base.BufferReader.Offset;
952 int i;
953 for (i = 0; i < _rowOffsets.Length - 1 && _rowOffsets[i + 1] < offset; i++)
954 {
955 }
956 row = i + 1;
957 column = offset - _rowOffsets[i] + 1;
958 }

References System.Xml.XmlUTF8TextReader._rowOffsets, System.Xml.Dictionary, and System.offset.