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

◆ InsertNode()

void System.Xml.XmlBinaryReader.InsertNode ( XmlBinaryNodeType nodeType,
int length )
inlineprivate

Definition at line 1117 of file XmlBinaryReader.cs.

1118 {
1119 byte[] array = new byte[5]
1120 {
1121 (byte)nodeType,
1122 (byte)length,
1123 0,
1124 0,
1125 0
1126 };
1127 length >>= 8;
1128 array[2] = (byte)length;
1129 length >>= 8;
1130 array[3] = (byte)length;
1131 length >>= 8;
1132 array[4] = (byte)length;
1133 base.BufferReader.InsertBytes(array, 0, array.Length);
1134 }

References System.array, System.Xml.Dictionary, and System.length.

Referenced by System.Xml.XmlBinaryReader.ReadPartialBinaryText(), System.Xml.XmlBinaryReader.ReadPartialUnicodeText(), and System.Xml.XmlBinaryReader.ReadPartialUTF8Text().