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

◆ ReadElementContentAsBinary()

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

Definition at line 366 of file ReadContentAsBinaryHelper.cs.

367 {
368 if (count == 0)
369 {
370 return 0;
371 }
373 if (num > 0)
374 {
375 return num;
376 }
377 if (_reader.NodeType != XmlNodeType.EndElement)
378 {
379 throw new XmlException(System.SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo);
380 }
381 _reader.Read();
382 _state = State.None;
383 return 0;
384 }
static string Xml_InvalidNodeType
Definition SR.cs:88
Definition SR.cs:7
int ReadContentAsBinary(byte[] buffer, int index, int count)
XmlNodeType NodeType
Definition XmlReader.cs:62

References System.Xml.ReadContentAsBinaryHelper._reader, System.Xml.ReadContentAsBinaryHelper._state, System.buffer, System.count, System.Xml.Dictionary, System.index, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.Read(), System.Xml.ReadContentAsBinaryHelper.ReadContentAsBinary(), System.SR.Xml_InvalidNodeType, and System.Xml.XmlException.

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