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

◆ ReadElementContentAsBinaryAsync()

async Task< int > System.Xml.XmlTextReaderImpl.ReadElementContentAsBinaryAsync ( byte[] buffer,
int index,
int count )
inlineprivate

Definition at line 12965 of file XmlTextReaderImpl.cs.

12966 {
12967 if (count == 0)
12968 {
12969 return 0;
12970 }
12972 if (num > 0)
12973 {
12974 return num;
12975 }
12976 if (_curNode.type != XmlNodeType.EndElement)
12977 {
12978 throw new XmlException(System.SR.Xml_InvalidNodeType, _curNode.type.ToString(), this);
12979 }
12983 return 0;
12984 }
static string Xml_InvalidNodeType
Definition SR.cs:88
Definition SR.cs:7
virtual Task< bool > ReadAsync()
async Task< int > ReadContentAsBinaryAsync(byte[] buffer, int index, int count)

References System.Xml.XmlTextReaderImpl._curNode, System.Xml.XmlTextReaderImpl._nextNextParsingFunction, System.Xml.XmlTextReaderImpl._nextParsingFunction, System.Xml.XmlTextReaderImpl._outerReader, System.Xml.XmlTextReaderImpl._parsingFunction, System.buffer, System.count, System.index, System.Xml.XmlReader.ReadAsync(), System.Xml.XmlTextReaderImpl.ReadContentAsBinaryAsync(), System.Xml.XmlTextReaderImpl.NodeData.type, System.SR.Xml_InvalidNodeType, and System.Xml.XmlException.

Referenced by System.Xml.XmlTextReaderImpl.ReadElementContentAsBase64Async(), System.Xml.XmlTextReaderImpl.ReadElementContentAsBase64Async_Helper(), and System.Xml.XmlTextReaderImpl.ReadElementContentAsBinHexAsync().