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

◆ ReadContentAsBase64()

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

Reimplemented from System.Xml.XmlReader.

Definition at line 327 of file XmlCharCheckingReader.cs.

328 {
329 if (ReadState != ReadState.Interactive)
330 {
331 return 0;
332 }
333 if (_state != State.InReadBinary)
334 {
335 if (base.CanReadBinaryContent && !_checkCharacters)
336 {
337 _readBinaryHelper = null;
338 _state = State.InReadBinary;
340 }
341 _readBinaryHelper = ReadContentAsBinaryHelper.CreateOrReset(_readBinaryHelper, this);
342 }
343 else if (_readBinaryHelper == null)
344 {
345 return base.ReadContentAsBase64(buffer, index, count);
346 }
347 _state = State.Interactive;
349 _state = State.InReadBinary;
350 return result;
351 }
static ReadContentAsBinaryHelper CreateOrReset(ReadContentAsBinaryHelper helper, XmlReader reader)
int ReadContentAsBase64(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.ReadContentAsBase64().