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

◆ ReadElementContentAsBinHex()

override int System.Xml.XmlTextReaderImpl.ReadElementContentAsBinHex ( byte[] buffer,
int index,
int count )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 2426 of file XmlTextReaderImpl.cs.

2427 {
2428 if (buffer == null)
2429 {
2430 throw new ArgumentNullException("buffer");
2431 }
2432 if (count < 0)
2433 {
2434 throw new ArgumentOutOfRangeException("count");
2435 }
2436 if (index < 0)
2437 {
2438 throw new ArgumentOutOfRangeException("index");
2439 }
2440 if (buffer.Length - index < count)
2441 {
2442 throw new ArgumentOutOfRangeException("count");
2443 }
2444 if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary)
2445 {
2447 {
2449 }
2450 }
2451 else
2452 {
2453 if (_readState != ReadState.Interactive)
2454 {
2455 return 0;
2456 }
2457 if (_parsingFunction == ParsingFunction.InReadContentAsBinary)
2458 {
2460 }
2461 if (_curNode.type != XmlNodeType.Element)
2462 {
2463 throw CreateReadElementContentAsException("ReadElementContentAsBinHex");
2464 }
2466 {
2467 return 0;
2468 }
2469 }
2472 }
static string Xml_MixingBinaryContentMethods
Definition SR.cs:184
Definition SR.cs:7
Exception CreateReadElementContentAsException(string methodName)
int ReadElementContentAsBinary(byte[] buffer, int index, int count)
IncrementalReadDecoder _incReadDecoder

References System.Xml.XmlTextReaderImpl._binHexDecoder, System.Xml.XmlTextReaderImpl._curNode, System.Xml.XmlTextReaderImpl._incReadDecoder, System.Xml.XmlTextReaderImpl._parsingFunction, System.Xml.XmlTextReaderImpl._readState, System.buffer, System.count, System.Xml.XmlReader.CreateReadElementContentAsException(), System.index, System.Xml.XmlTextReaderImpl.InitBinHexDecoder(), System.Xml.XmlTextReaderImpl.InitReadElementContentAsBinary(), System.Xml.XmlTextReaderImpl.ReadElementContentAsBinary(), System.Xml.XmlTextReaderImpl.NodeData.type, and System.SR.Xml_MixingBinaryContentMethods.

Referenced by System.Xml.XmlTextReader.ReadElementContentAsBinHex().