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

◆ FillAllowEOF()

bool System.Xml.XmlSqlBinaryReader.FillAllowEOF ( )
inlineprivate

Definition at line 1841 of file XmlSqlBinaryReader.cs.

1842 {
1843 if (_eof)
1844 {
1845 return false;
1846 }
1847 byte[] array = _data;
1848 int pos = _pos;
1849 int num = _mark;
1850 int end = _end;
1851 if (num == -1)
1852 {
1853 num = pos;
1854 }
1855 if (num >= 0 && num < end)
1856 {
1857 int num2 = end - num;
1858 if (num2 > 7 * (array.Length / 8))
1859 {
1860 byte[] array2 = new byte[checked(array.Length * 2)];
1861 Array.Copy(array, num, array2, 0, num2);
1862 array = (_data = array2);
1863 }
1864 else
1865 {
1866 Array.Copy(array, num, array, 0, num2);
1867 }
1868 pos -= num;
1869 end -= num;
1870 _tokDataPos -= num;
1871 for (int i = 0; i < _attrCount; i++)
1872 {
1874 }
1875 _pos = pos;
1876 _mark = 0;
1877 }
1878 else
1879 {
1880 _pos -= end;
1881 _mark -= end;
1882 _tokDataPos -= end;
1883 end = 0;
1884 }
1885 int count = array.Length - end;
1886 int num3 = _inStrm.Read(array, end, count);
1887 _end = end + num3;
1888 _eof = num3 <= 0;
1889 return num3 > 0;
1890 }
int Read(byte[] buffer, int offset, int count)

References System.Xml.XmlSqlBinaryReader._attrCount, System.Xml.XmlSqlBinaryReader._attributes, System.Xml.XmlSqlBinaryReader._data, System.Xml.XmlSqlBinaryReader._end, System.Xml.XmlSqlBinaryReader._eof, System.Xml.XmlSqlBinaryReader._inStrm, System.Xml.XmlSqlBinaryReader._mark, System.Xml.XmlSqlBinaryReader._pos, System.Xml.XmlSqlBinaryReader._tokDataPos, System.Xml.XmlSqlBinaryReader.AttrInfo.AdjustPosition(), System.array, System.Array.Copy(), System.count, System.Xml.Dictionary, and System.IO.Stream.Read().

Referenced by System.Xml.XmlSqlBinaryReader.Fill_(), System.Xml.XmlSqlBinaryReader.PeekToken(), and System.Xml.XmlSqlBinaryReader.ReadToken().