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

◆ ReadContentAsBinHexAsync()

override async Task< int > System.Xml.XmlCharCheckingReader.ReadContentAsBinHexAsync ( byte[] buffer,
int index,
int count )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 714 of file XmlCharCheckingReader.cs.

715 {
716 if (ReadState != ReadState.Interactive)
717 {
718 return 0;
719 }
720 if (_state != State.InReadBinary)
721 {
722 if (base.CanReadBinaryContent && !_checkCharacters)
723 {
724 _readBinaryHelper = null;
725 _state = State.InReadBinary;
727 }
728 _readBinaryHelper = ReadContentAsBinaryHelper.CreateOrReset(_readBinaryHelper, this);
729 }
730 else if (_readBinaryHelper == null)
731 {
732 return await base.ReadContentAsBinHexAsync(buffer, index, count).ConfigureAwait(continueOnCapturedContext: false);
733 }
734 _state = State.Interactive;
736 _state = State.InReadBinary;
737 return result;
738 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
static ReadContentAsBinaryHelper CreateOrReset(ReadContentAsBinaryHelper helper, XmlReader reader)
async Task< int > ReadContentAsBinHexAsync(byte[] buffer, int index, int count)
ReadContentAsBinaryHelper _readBinaryHelper

References System.Xml.XmlCharCheckingReader._checkCharacters, System.Xml.XmlCharCheckingReader._readBinaryHelper, System.Xml.XmlCharCheckingReader._state, System.buffer, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.count, System.Xml.ReadContentAsBinaryHelper.CreateOrReset(), System.Xml.Dictionary, System.index, and System.Xml.ReadContentAsBinaryHelper.ReadContentAsBinHexAsync().