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

◆ ReadContentAsBinHex()

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

Reimplemented from System.Xml.XmlReader.

Definition at line 353 of file XmlCharCheckingReader.cs.

354 {
355 if (ReadState != ReadState.Interactive)
356 {
357 return 0;
358 }
359 if (_state != State.InReadBinary)
360 {
361 if (base.CanReadBinaryContent && !_checkCharacters)
362 {
363 _readBinaryHelper = null;
364 _state = State.InReadBinary;
366 }
367 _readBinaryHelper = ReadContentAsBinaryHelper.CreateOrReset(_readBinaryHelper, this);
368 }
369 else if (_readBinaryHelper == null)
370 {
371 return base.ReadContentAsBinHex(buffer, index, count);
372 }
373 _state = State.Interactive;
375 _state = State.InReadBinary;
376 return result;
377 }
static ReadContentAsBinaryHelper CreateOrReset(ReadContentAsBinaryHelper helper, XmlReader reader)
int ReadContentAsBinHex(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.ReadContentAsBinHex().