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

◆ SignAttribute()

void System.Xml.XmlBaseReader.SignAttribute ( XmlSigningNodeWriter writer,
XmlAttributeNode attributeNode )
inlineprivateinherited

Definition at line 3014 of file XmlBaseReader.cs.

3015 {
3016 if (attributeNode.QNameType == QNameType.Normal)
3017 {
3018 int offset;
3019 int length;
3020 byte[] @string = attributeNode.Prefix.GetString(out offset, out length);
3021 int offset2;
3022 int length2;
3023 byte[] string2 = attributeNode.LocalName.GetString(out offset2, out length2);
3024 writer.WriteStartAttribute(@string, offset, length, string2, offset2, length2);
3025 attributeNode.Value.Sign(writer);
3026 writer.WriteEndAttribute();
3027 }
3028 else
3029 {
3030 int offset3;
3031 int length3;
3032 byte[] string3 = attributeNode.Namespace.Prefix.GetString(out offset3, out length3);
3033 int offset4;
3034 int length4;
3035 byte[] string4 = attributeNode.Namespace.Uri.GetString(out offset4, out length4);
3036 writer.WriteXmlnsAttribute(string3, offset3, length3, string4, offset4, length4);
3037 }
3038 }

References System.Xml.Dictionary, System.length, System.length2, System.length3, System.offset, and System.writer.

Referenced by System.Xml.XmlBaseReader.SignNode().