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

◆ ReadElementContentAsBinHexAsync()

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

Reimplemented from System.Xml.XmlReader.

Definition at line 9028 of file XmlTextReaderImpl.cs.

9029 {
9031 if (buffer == null)
9032 {
9033 throw new ArgumentNullException("buffer");
9034 }
9035 if (count < 0)
9036 {
9037 throw new ArgumentOutOfRangeException("count");
9038 }
9039 if (index < 0)
9040 {
9041 throw new ArgumentOutOfRangeException("index");
9042 }
9043 if (buffer.Length - index < count)
9044 {
9045 throw new ArgumentOutOfRangeException("count");
9046 }
9047 if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary)
9048 {
9050 {
9052 }
9053 }
9054 else
9055 {
9056 if (_readState != ReadState.Interactive)
9057 {
9058 return 0;
9059 }
9060 if (_parsingFunction == ParsingFunction.InReadContentAsBinary)
9061 {
9063 }
9064 if (_curNode.type != XmlNodeType.Element)
9065 {
9066 throw CreateReadElementContentAsException("ReadElementContentAsBinHex");
9067 }
9069 {
9070 return 0;
9071 }
9072 }
9075 }
static string Xml_MixingBinaryContentMethods
Definition SR.cs:184
Definition SR.cs:7
Exception CreateReadElementContentAsException(string methodName)
async Task< bool > InitReadElementContentAsBinaryAsync()
async Task< int > ReadElementContentAsBinaryAsync(byte[] buffer, int index, int count)
IncrementalReadDecoder _incReadDecoder

References System.Xml.XmlTextReaderImpl._binHexDecoder, 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.index, System.Xml.XmlTextReaderImpl.InitBinHexDecoder(), System.Xml.XmlTextReaderImpl.InitReadElementContentAsBinaryAsync(), System.Xml.XmlTextReaderImpl.ReadElementContentAsBinaryAsync(), System.Xml.XmlTextReaderImpl.NodeData.type, and System.SR.Xml_MixingBinaryContentMethods.