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

◆ WriteEndStartElement()

void System.Xml.XmlCanonicalWriter.WriteEndStartElement ( bool isEmpty)
inline

Definition at line 404 of file XmlCanonicalWriter.cs.

405 {
409 _inStartElement = false;
412 for (int i = _scopes[_depth - 1].xmlnsAttributeCount; i < _xmlnsAttributeCount; i++)
413 {
414 int num = i - 1;
415 bool flag = false;
416 while (num >= 0)
417 {
418 if (Equals(_xmlnsBuffer, _xmlnsAttributes[i].prefixOffset, _xmlnsAttributes[i].prefixLength, _xmlnsBuffer, _xmlnsAttributes[num].prefixOffset, _xmlnsAttributes[num].prefixLength))
419 {
420 if (!Equals(_xmlnsBuffer, _xmlnsAttributes[i].nsOffset, _xmlnsAttributes[i].nsLength, _xmlnsBuffer, _xmlnsAttributes[num].nsOffset, _xmlnsAttributes[num].nsLength))
421 {
422 break;
423 }
424 if (_xmlnsAttributes[num].referred)
425 {
426 flag = true;
427 break;
428 }
429 }
430 num--;
431 }
432 if (!flag)
433 {
435 }
436 }
437 if (_attributeCount > 0)
438 {
439 if (_attributeCount > 1)
440 {
442 }
443 for (int j = 0; j < _attributeCount; j++)
444 {
446 }
447 }
449 if (isEmpty)
450 {
452 EndElement();
453 }
454 _elementBuffer = null;
455 }
virtual byte[] GetBuffer()
bool Equals(byte[] buffer1, int offset1, int length1, byte[] buffer2, int offset2, int length2)
void WriteXmlnsAttribute(string prefix, string ns)
override void WriteEndStartElement(bool isEmpty)
override void WriteStartElement(string prefix, string localName)
override void WriteEndElement(string prefix, string localName)

References System.Xml.XmlCanonicalWriter._attributeCount, System.Xml.XmlCanonicalWriter._attributes, System.Xml.XmlCanonicalWriter._depth, System.Xml.XmlCanonicalWriter._element, System.Xml.XmlCanonicalWriter._elementBuffer, System.Xml.XmlCanonicalWriter._elementStream, System.Xml.XmlCanonicalWriter._elementWriter, System.Xml.XmlCanonicalWriter._inStartElement, System.Xml.XmlCanonicalWriter._scopes, System.Xml.XmlCanonicalWriter._writer, System.Xml.XmlCanonicalWriter._xmlnsAttributeCount, System.Xml.XmlCanonicalWriter._xmlnsAttributes, System.Xml.XmlCanonicalWriter._xmlnsBuffer, System.Xml.Dictionary, System.Xml.XmlCanonicalWriter.EndElement(), System.Xml.XmlCanonicalWriter.Equals(), System.Xml.XmlStreamNodeWriter.Flush(), System.IO.MemoryStream.GetBuffer(), System.length, System.Xml.XmlCanonicalWriter.Element.localNameLength, System.Xml.XmlCanonicalWriter.Element.localNameOffset, System.offset, System.Xml.XmlCanonicalWriter.Element.prefixLength, System.Xml.XmlCanonicalWriter.Element.prefixOffset, System.Xml.XmlCanonicalWriter.ResolvePrefixes(), System.Xml.XmlCanonicalWriter.SortAttributes(), System.Xml.XmlCanonicalWriter.ThrowIfClosed(), System.Xml.XmlUTF8NodeWriter.WriteEndElement(), System.Xml.XmlUTF8NodeWriter.WriteEndStartElement(), System.Xml.XmlUTF8NodeWriter.WriteStartElement(), System.Xml.XmlUTF8NodeWriter.WriteText(), and System.Xml.XmlCanonicalWriter.WriteXmlnsAttribute().

Referenced by System.Xml.XmlSigningNodeWriter.WriteEndStartElement().