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

◆ ReadContentAsBase64Async()

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

Reimplemented from System.Xml.XmlReader.

Definition at line 688 of file XmlCharCheckingReader.cs.

689 {
690 if (ReadState != ReadState.Interactive)
691 {
692 return 0;
693 }
694 if (_state != State.InReadBinary)
695 {
696 if (base.CanReadBinaryContent && !_checkCharacters)
697 {
698 _readBinaryHelper = null;
699 _state = State.InReadBinary;
701 }
702 _readBinaryHelper = ReadContentAsBinaryHelper.CreateOrReset(_readBinaryHelper, this);
703 }
704 else if (_readBinaryHelper == null)
705 {
706 return await base.ReadContentAsBase64Async(buffer, index, count).ConfigureAwait(continueOnCapturedContext: false);
707 }
708 _state = State.Interactive;
710 _state = State.InReadBinary;
711 return result;
712 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
static ReadContentAsBinaryHelper CreateOrReset(ReadContentAsBinaryHelper helper, XmlReader reader)
async Task< int > ReadContentAsBase64Async(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.ReadContentAsBase64Async().