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

◆ ReadElementContentAsBase64()

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

Reimplemented from System.Xml.XmlReader.

Definition at line 379 of file XmlCharCheckingReader.cs.

380 {
381 if (buffer == null)
382 {
383 throw new ArgumentNullException("buffer");
384 }
385 if (count < 0)
386 {
387 throw new ArgumentOutOfRangeException("count");
388 }
389 if (index < 0)
390 {
391 throw new ArgumentOutOfRangeException("index");
392 }
393 if (buffer.Length - index < count)
394 {
395 throw new ArgumentOutOfRangeException("count");
396 }
397 if (ReadState != ReadState.Interactive)
398 {
399 return 0;
400 }
401 if (_state != State.InReadBinary)
402 {
403 if (base.CanReadBinaryContent && !_checkCharacters)
404 {
405 _readBinaryHelper = null;
406 _state = State.InReadBinary;
408 }
409 _readBinaryHelper = ReadContentAsBinaryHelper.CreateOrReset(_readBinaryHelper, this);
410 }
411 else if (_readBinaryHelper == null)
412 {
413 return base.ReadElementContentAsBase64(buffer, index, count);
414 }
415 _state = State.Interactive;
417 _state = State.InReadBinary;
418 return result;
419 }
static ReadContentAsBinaryHelper CreateOrReset(ReadContentAsBinaryHelper helper, XmlReader reader)
int ReadElementContentAsBase64(byte[] buffer, int index, int count)
ReadContentAsBinaryHelper _readBinaryHelper

References System.Xml.XmlCharCheckingReader._checkCharacters, System.Xml.XmlCharCheckingReader._readBinaryHelper, System.Xml.XmlCharCheckingReader._state, System.buffer, System.count, System.Xml.ReadContentAsBinaryHelper.CreateOrReset(), System.Xml.Dictionary, System.index, and System.Xml.ReadContentAsBinaryHelper.ReadElementContentAsBase64().