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

◆ ReadContentAsBinHexAsync()

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

Reimplemented from System.Xml.XmlReader.

Definition at line 8915 of file XmlTextReaderImpl.cs.

8916 {
8918 if (buffer == null)
8919 {
8920 throw new ArgumentNullException("buffer");
8921 }
8922 if (count < 0)
8923 {
8924 throw new ArgumentOutOfRangeException("count");
8925 }
8926 if (index < 0)
8927 {
8928 throw new ArgumentOutOfRangeException("index");
8929 }
8930 if (buffer.Length - index < count)
8931 {
8932 throw new ArgumentOutOfRangeException("count");
8933 }
8934 if (_parsingFunction == ParsingFunction.InReadContentAsBinary)
8935 {
8937 {
8939 }
8940 }
8941 else
8942 {
8943 if (_readState != ReadState.Interactive)
8944 {
8945 return 0;
8946 }
8947 if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary)
8948 {
8950 }
8951 if (!XmlReader.CanReadContentAs(_curNode.type))
8952 {
8953 throw CreateReadContentAsException("ReadContentAsBinHex");
8954 }
8956 {
8957 return 0;
8958 }
8959 }
8962 }
static string Xml_MixingBinaryContentMethods
Definition SR.cs:184
Definition SR.cs:7
Exception CreateReadContentAsException(string methodName)
async Task< bool > InitReadContentAsBinaryAsync()
async Task< int > ReadContentAsBinaryAsync(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.XmlReader.CanReadContentAs(), System.Xml.XmlTextReaderImpl.CheckAsyncCall(), System.count, System.Xml.XmlReader.CreateReadContentAsException(), System.index, System.Xml.XmlTextReaderImpl.InitBinHexDecoder(), System.Xml.XmlTextReaderImpl.InitReadContentAsBinaryAsync(), System.Xml.XmlTextReaderImpl.ReadContentAsBinaryAsync(), System.Xml.XmlTextReaderImpl.NodeData.type, and System.SR.Xml_MixingBinaryContentMethods.