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

◆ ReadElementContentAsBinary()

int System.Xml.XmlTextReaderImpl.ReadElementContentAsBinary ( byte[] buffer,
int index,
int count )
inlineprivate

Definition at line 8311 of file XmlTextReaderImpl.cs.

8312 {
8313 if (count == 0)
8314 {
8315 return 0;
8316 }
8318 if (num > 0)
8319 {
8320 return num;
8321 }
8322 if (_curNode.type != XmlNodeType.EndElement)
8323 {
8324 throw new XmlException(System.SR.Xml_InvalidNodeType, _curNode.type.ToString(), this);
8325 }
8329 return 0;
8330 }
static string Xml_InvalidNodeType
Definition SR.cs:88
Definition SR.cs:7
int ReadContentAsBinary(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.Read(), System.Xml.XmlTextReaderImpl.ReadContentAsBinary(), System.Xml.XmlTextReaderImpl.NodeData.type, System.SR.Xml_InvalidNodeType, and System.Xml.XmlException.

Referenced by System.Xml.XmlTextReaderImpl.ReadElementContentAsBase64(), and System.Xml.XmlTextReaderImpl.ReadElementContentAsBinHex().