terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ InitStreamInput() [2/3]

void System.Xml.XmlTextReaderImpl.InitStreamInput ( Uri baseUri,
string baseUriStr,
Stream stream,
byte[] bytes,
int byteCount,
Encoding encoding )
inlineprivate

Definition at line 1587 of file XmlTextReaderImpl.cs.

1588 {
1589 this.ps.stream = stream;
1590 this.ps.baseUriStr = baseUriStr;
1591 this.ps.baseUri = baseUri;
1592 if (bytes != null)
1593 {
1594 this.ps.bytes = bytes;
1596 return;
1597 }
1599 if (laterInitParam != null && laterInitParam.useAsync)
1600 {
1601 return;
1602 }
1603 int num = XmlReader.CalcBufferSize(stream);
1604 if (this.ps.bytes != null)
1605 {
1606 }
1608 if (parsingState != null)
1609 {
1610 bool appendMode = parsingState.appendMode;
1611 return;
1612 }
1613 int bytesUsed = this.ps.bytesUsed;
1614 byte[] bytes2 = this.ps.bytes;
1616 if (stream != null)
1617 {
1618 int bytesUsed2 = this.ps.bytesUsed;
1619 this.ps.bytesUsed = bytesUsed;
1620 if (encoding == null)
1621 {
1622 encoding2 = this.DetectEncoding();
1623 }
1624 this.SetupEncoding(encoding2);
1625 CodePageDataItem dataItem = this.ps.encoding.dataItem;
1626 byte[] bytes3 = this.ps.bytes;
1627 return;
1628 }
1629 int num2 = 1;
1630 this.ps.isStreamEof = num2 != 0;
1631 while (encoding2 != null)
1632 {
1633 }
1634 }
class f__AnonymousType0<< Count > j__TPar
static int CalcBufferSize(Stream input)
Definition XmlReader.cs:148
XmlTextReaderImpl.ParsingState ps
XmlTextReaderImpl.LaterInitParam laterInitParam
void SetupEncoding(Encoding encoding)

References System.Xml.XmlReader.CalcBufferSize(), System.Xml.XmlTextReaderImpl.DetectEncoding(), j__TPar, System.Xml.XmlTextReaderImpl.laterInitParam, System.Xml.XmlTextReaderImpl.ps, and System.Xml.XmlTextReaderImpl.SetupEncoding().