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

◆ ReadContentAsBase64Async()

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

Reimplemented from System.Xml.XmlReader.

Definition at line 8861 of file XmlTextReaderImpl.cs.

8862 {
8864 if (buffer == null)
8865 {
8866 throw new ArgumentNullException("buffer");
8867 }
8868 if (count < 0)
8869 {
8870 throw new ArgumentOutOfRangeException("count");
8871 }
8872 if (index < 0)
8873 {
8874 throw new ArgumentOutOfRangeException("index");
8875 }
8876 if (buffer.Length - index < count)
8877 {
8878 throw new ArgumentOutOfRangeException("count");
8879 }
8880 if (_parsingFunction == ParsingFunction.InReadContentAsBinary)
8881 {
8883 {
8885 }
8886 }
8887 else
8888 {
8889 if (_readState != ReadState.Interactive)
8890 {
8891 return AsyncHelper.DoneTaskZero;
8892 }
8893 if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary)
8894 {
8896 }
8897 if (!XmlReader.CanReadContentAs(_curNode.type))
8898 {
8899 throw CreateReadContentAsException("ReadContentAsBase64");
8900 }
8902 if (!task.IsSuccess())
8903 {
8905 }
8906 if (!task.Result)
8907 {
8908 return AsyncHelper.DoneTaskZero;
8909 }
8910 }
8913 }
static string Xml_MixingBinaryContentMethods
Definition SR.cs:184
Definition SR.cs:7
Exception CreateReadContentAsException(string methodName)
async Task< int > ReadContentAsBase64_AsyncHelper(Task< bool > task, byte[] buffer, int index, int count)
async Task< bool > InitReadContentAsBinaryAsync()
async Task< int > ReadContentAsBinaryAsync(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.XmlReader.CanReadContentAs(), System.Xml.XmlTextReaderImpl.CheckAsyncCall(), System.count, System.Xml.XmlReader.CreateReadContentAsException(), System.Xml.AsyncHelper.DoneTaskZero, System.index, System.Xml.XmlTextReaderImpl.InitBase64Decoder(), System.Xml.XmlTextReaderImpl.InitReadContentAsBinaryAsync(), System.Xml.XmlTextReaderImpl.ReadContentAsBase64_AsyncHelper(), System.Xml.XmlTextReaderImpl.ReadContentAsBinaryAsync(), System.task, System.Xml.XmlTextReaderImpl.NodeData.type, and System.SR.Xml_MixingBinaryContentMethods.