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

◆ CalcBufferSize()

static int System.Xml.XmlReader.CalcBufferSize ( Stream input)
inlinestaticpackageinherited

Definition at line 1477 of file XmlReader.cs.

1478 {
1479 int num = 4096;
1480 if (input.CanSeek)
1481 {
1482 long length = input.Length;
1483 if (length < num)
1484 {
1485 num = checked((int)length);
1486 }
1487 else if (length > 65536)
1488 {
1489 num = 8192;
1490 }
1491 }
1492 return num;
1493 }

References System.Xml.Dictionary, System.input, and System.length.

Referenced by System.Xml.XmlReader.CreateSqlReader(), System.Xml.XmlTextReaderImpl.InitStreamInput(), and System.Xml.XmlTextReaderImpl.InitStreamInputAsync().