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

◆ ReadElementContentAsBase64()

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

Reimplemented from System.Xml.XmlReader.

Definition at line 2378 of file XmlTextReaderImpl.cs.

2379 {
2380 if (buffer == null)
2381 {
2382 throw new ArgumentNullException("buffer");
2383 }
2384 if (count < 0)
2385 {
2386 throw new ArgumentOutOfRangeException("count");
2387 }
2388 if (index < 0)
2389 {
2390 throw new ArgumentOutOfRangeException("index");
2391 }
2392 if (buffer.Length - index < count)
2393 {
2394 throw new ArgumentOutOfRangeException("count");
2395 }
2396 if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary)
2397 {
2399 {
2401 }
2402 }
2403 else
2404 {
2405 if (_readState != ReadState.Interactive)
2406 {
2407 return 0;
2408 }
2409 if (_parsingFunction == ParsingFunction.InReadContentAsBinary)
2410 {
2412 }
2413 if (_curNode.type != XmlNodeType.Element)
2414 {
2415 throw CreateReadElementContentAsException("ReadElementContentAsBinHex");
2416 }
2418 {
2419 return 0;
2420 }
2421 }
2424 }
static string Xml_MixingBinaryContentMethods
Definition SR.cs:184
Definition SR.cs:7
Exception CreateReadElementContentAsException(string methodName)
int ReadElementContentAsBinary(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.count, System.Xml.XmlReader.CreateReadElementContentAsException(), System.index, System.Xml.XmlTextReaderImpl.InitBase64Decoder(), System.Xml.XmlTextReaderImpl.InitReadElementContentAsBinary(), System.Xml.XmlTextReaderImpl.ReadElementContentAsBinary(), System.Xml.XmlTextReaderImpl.NodeData.type, and System.SR.Xml_MixingBinaryContentMethods.

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