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

◆ WriteBase64Text()

override void System.Xml.XmlBinaryNodeWriter.WriteBase64Text ( byte[] trailBytes,
int trailByteCount,
byte[] base64Buffer,
int base64Offset,
int base64Count )
inline

Definition at line 608 of file XmlBinaryNodeWriter.cs.

609 {
610 if (_inAttribute)
611 {
613 return;
614 }
615 int num = trailByteCount + base64Count;
616 if (num > 0)
617 {
618 WriteTextNodeWithLength(XmlBinaryNodeType.Bytes8Text, num);
619 if (trailByteCount > 0)
620 {
621 int offset;
623 for (int i = 0; i < trailByteCount; i++)
624 {
625 buffer[offset + i] = trailBytes[i];
626 }
628 }
629 if (base64Count > 0)
630 {
632 }
633 }
634 else
635 {
637 }
638 }
void WriteTextNodeWithLength(XmlBinaryNodeType nodeType, int length)
byte[] GetBuffer(int count, out int offset)
void WriteBase64Text(byte[] trailBytes, int trailByteCount, byte[] buffer, int offset, int count)

References System.Xml.XmlBinaryNodeWriter._attributeValue, System.Xml.XmlBinaryNodeWriter._inAttribute, System.Xml.XmlStreamNodeWriter.Advance(), System.buffer, System.Xml.Dictionary, System.Xml.XmlStreamNodeWriter.GetBuffer(), System.offset, System.Xml.XmlBinaryNodeWriter.AttributeValue.WriteBase64Text(), System.Xml.XmlStreamNodeWriter.WriteBytes(), System.Xml.XmlBinaryNodeWriter.WriteEmptyText(), and System.Xml.XmlBinaryNodeWriter.WriteTextNodeWithLength().