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

◆ FinishReadContentAsBinary()

bool System.Xml.XmlSubtreeReader.FinishReadContentAsBinary ( )
inlineprivate

Definition at line 1271 of file XmlSubtreeReader.cs.

1272 {
1273 byte[] buffer = new byte[256];
1274 if (_state == State.ReadContentAsBase64)
1275 {
1276 while (reader.ReadContentAsBase64(buffer, 0, 256) > 0)
1277 {
1278 }
1279 }
1280 else
1281 {
1282 while (reader.ReadContentAsBinHex(buffer, 0, 256) > 0)
1283 {
1284 }
1285 }
1286 _state = State.Interactive;
1288 if (reader.Depth == _initialDepth)
1289 {
1290 _state = State.EndOfFile;
1291 SetEmptyNode();
1292 return false;
1293 }
1294 return true;
1295 }
virtual int ReadContentAsBinHex(byte[] buffer, int index, int count)
Definition XmlReader.cs:554
virtual int ReadContentAsBase64(byte[] buffer, int index, int count)
Definition XmlReader.cs:544

References System.Xml.XmlSubtreeReader._initialDepth, System.Xml.XmlSubtreeReader._state, System.buffer, System.Xml.XmlReader.Depth, System.Xml.XmlSubtreeReader.ProcessNamespaces(), System.Xml.XmlReader.ReadContentAsBase64(), System.Xml.XmlReader.ReadContentAsBinHex(), System.Xml.XmlWrappingReader.reader, and System.Xml.XmlSubtreeReader.SetEmptyNode().

Referenced by System.Xml.XmlSubtreeReader.Read(), and System.Xml.XmlSubtreeReader.Skip().