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

◆ ReadElementContentAsBinHex()

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

Reimplemented from System.Xml.XmlReader.

Definition at line 421 of file XmlCharCheckingReader.cs.

422 {
423 if (buffer == null)
424 {
425 throw new ArgumentNullException("buffer");
426 }
427 if (count < 0)
428 {
429 throw new ArgumentOutOfRangeException("count");
430 }
431 if (index < 0)
432 {
433 throw new ArgumentOutOfRangeException("index");
434 }
435 if (buffer.Length - index < count)
436 {
437 throw new ArgumentOutOfRangeException("count");
438 }
439 if (ReadState != ReadState.Interactive)
440 {
441 return 0;
442 }
443 if (_state != State.InReadBinary)
444 {
445 if (base.CanReadBinaryContent && !_checkCharacters)
446 {
447 _readBinaryHelper = null;
448 _state = State.InReadBinary;
450 }
451 _readBinaryHelper = ReadContentAsBinaryHelper.CreateOrReset(_readBinaryHelper, this);
452 }
453 else if (_readBinaryHelper == null)
454 {
455 return base.ReadElementContentAsBinHex(buffer, index, count);
456 }
457 _state = State.Interactive;
459 _state = State.InReadBinary;
460 return result;
461 }
static ReadContentAsBinaryHelper CreateOrReset(ReadContentAsBinaryHelper helper, XmlReader reader)
int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
ReadContentAsBinaryHelper _readBinaryHelper

References System.Xml.XmlCharCheckingReader._checkCharacters, System.Xml.XmlCharCheckingReader._readBinaryHelper, System.Xml.XmlCharCheckingReader._state, System.buffer, System.count, System.Xml.ReadContentAsBinaryHelper.CreateOrReset(), System.Xml.Dictionary, System.index, and System.Xml.ReadContentAsBinaryHelper.ReadElementContentAsBinHex().