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

◆ ReadContentAsBase64()

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

Reimplemented from System.Xml.XmlReader.

Definition at line 2282 of file XmlTextReaderImpl.cs.

2283 {
2284 if (buffer == null)
2285 {
2286 throw new ArgumentNullException("buffer");
2287 }
2288 if (count < 0)
2289 {
2290 throw new ArgumentOutOfRangeException("count");
2291 }
2292 if (index < 0)
2293 {
2294 throw new ArgumentOutOfRangeException("index");
2295 }
2296 if (buffer.Length - index < count)
2297 {
2298 throw new ArgumentOutOfRangeException("count");
2299 }
2300 if (_parsingFunction == ParsingFunction.InReadContentAsBinary)
2301 {
2303 {
2305 }
2306 }
2307 else
2308 {
2309 if (_readState != ReadState.Interactive)
2310 {
2311 return 0;
2312 }
2313 if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary)
2314 {
2316 }
2317 if (!XmlReader.CanReadContentAs(_curNode.type))
2318 {
2319 throw CreateReadContentAsException("ReadContentAsBase64");
2320 }
2322 {
2323 return 0;
2324 }
2325 }
2328 }
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._base64Decoder, 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.InitBase64Decoder(), System.Xml.XmlTextReaderImpl.InitReadContentAsBinary(), System.Xml.XmlTextReaderImpl.ReadContentAsBinary(), System.Xml.XmlTextReaderImpl.NodeData.type, and System.SR.Xml_MixingBinaryContentMethods.

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