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

◆ ReadContentAsBinHex()

override int System.Xml.XmlTextReaderImpl.ReadContentAsBinHex ( byte[] buffer,
int index,
int count )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 2330 of file XmlTextReaderImpl.cs.

2331 {
2332 if (buffer == null)
2333 {
2334 throw new ArgumentNullException("buffer");
2335 }
2336 if (count < 0)
2337 {
2338 throw new ArgumentOutOfRangeException("count");
2339 }
2340 if (index < 0)
2341 {
2342 throw new ArgumentOutOfRangeException("index");
2343 }
2344 if (buffer.Length - index < count)
2345 {
2346 throw new ArgumentOutOfRangeException("count");
2347 }
2348 if (_parsingFunction == ParsingFunction.InReadContentAsBinary)
2349 {
2351 {
2353 }
2354 }
2355 else
2356 {
2357 if (_readState != ReadState.Interactive)
2358 {
2359 return 0;
2360 }
2361 if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary)
2362 {
2364 }
2365 if (!XmlReader.CanReadContentAs(_curNode.type))
2366 {
2367 throw CreateReadContentAsException("ReadContentAsBinHex");
2368 }
2370 {
2371 return 0;
2372 }
2373 }
2376 }
static string Xml_MixingBinaryContentMethods
Definition SR.cs:184
Definition SR.cs:7
Exception CreateReadContentAsException(string methodName)
int ReadContentAsBinary(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.count, System.Xml.XmlReader.CreateReadContentAsException(), System.index, System.Xml.XmlTextReaderImpl.InitBinHexDecoder(), System.Xml.XmlTextReaderImpl.InitReadContentAsBinary(), System.Xml.XmlTextReaderImpl.ReadContentAsBinary(), System.Xml.XmlTextReaderImpl.NodeData.type, and System.SR.Xml_MixingBinaryContentMethods.

Referenced by System.Xml.XmlTextReader.ReadContentAsBinHex().