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

◆ ReadElementContentAsBase64Async()

override Task< int > System.Xml.XmlTextReaderImpl.ReadElementContentAsBase64Async ( byte[] buffer,
int index,
int count )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 8974 of file XmlTextReaderImpl.cs.

8975 {
8977 if (buffer == null)
8978 {
8979 throw new ArgumentNullException("buffer");
8980 }
8981 if (count < 0)
8982 {
8983 throw new ArgumentOutOfRangeException("count");
8984 }
8985 if (index < 0)
8986 {
8987 throw new ArgumentOutOfRangeException("index");
8988 }
8989 if (buffer.Length - index < count)
8990 {
8991 throw new ArgumentOutOfRangeException("count");
8992 }
8993 if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary)
8994 {
8996 {
8998 }
8999 }
9000 else
9001 {
9002 if (_readState != ReadState.Interactive)
9003 {
9004 return AsyncHelper.DoneTaskZero;
9005 }
9006 if (_parsingFunction == ParsingFunction.InReadContentAsBinary)
9007 {
9009 }
9010 if (_curNode.type != XmlNodeType.Element)
9011 {
9012 throw CreateReadElementContentAsException("ReadElementContentAsBinHex");
9013 }
9015 if (!task.IsSuccess())
9016 {
9018 }
9019 if (!task.Result)
9020 {
9021 return AsyncHelper.DoneTaskZero;
9022 }
9023 }
9026 }
static string Xml_MixingBinaryContentMethods
Definition SR.cs:184
Definition SR.cs:7
Exception CreateReadElementContentAsException(string methodName)
async Task< int > ReadElementContentAsBase64Async_Helper(Task< bool > task, byte[] buffer, int index, int count)
async Task< bool > InitReadElementContentAsBinaryAsync()
async Task< int > ReadElementContentAsBinaryAsync(byte[] buffer, int index, int count)
IncrementalReadDecoder _incReadDecoder

References System.Xml.XmlTextReaderImpl._base64Decoder, System.Xml.XmlTextReaderImpl._curNode, System.Xml.XmlTextReaderImpl._incReadDecoder, System.Xml.XmlTextReaderImpl._parsingFunction, System.Xml.XmlTextReaderImpl._readState, System.buffer, System.Xml.XmlTextReaderImpl.CheckAsyncCall(), System.count, System.Xml.XmlReader.CreateReadElementContentAsException(), System.Xml.AsyncHelper.DoneTaskZero, System.index, System.Xml.XmlTextReaderImpl.InitBase64Decoder(), System.Xml.XmlTextReaderImpl.InitReadElementContentAsBinaryAsync(), System.Xml.XmlTextReaderImpl.ReadElementContentAsBase64Async_Helper(), System.Xml.XmlTextReaderImpl.ReadElementContentAsBinaryAsync(), System.task, System.Xml.XmlTextReaderImpl.NodeData.type, and System.SR.Xml_MixingBinaryContentMethods.