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

◆ UnsafeWriteUTF8Chars()

unsafe void System.Xml.XmlStreamNodeWriter.UnsafeWriteUTF8Chars ( char * chars,
int charCount )
inlineprotectedinherited

Definition at line 258 of file XmlStreamNodeWriter.cs.

259 {
260 while (charCount > 170)
261 {
262 int num = 170;
263 if ((chars[num - 1] & 0xFC00) == 55296)
264 {
265 num--;
266 }
267 int offset;
268 byte[] buffer = GetBuffer(num * 3, out offset);
270 charCount -= num;
271 chars += num;
272 }
273 if (charCount > 0)
274 {
275 int offset2;
276 byte[] buffer2 = GetBuffer(charCount * 3, out offset2);
278 }
279 }
unsafe int UnsafeGetUTF8Chars(char *chars, int charCount, byte[] buffer, int offset)
byte[] GetBuffer(int count, out int offset)

References System.Xml.XmlStreamNodeWriter.Advance(), System.buffer, System.charCount, System.chars, System.Xml.Dictionary, System.Xml.XmlStreamNodeWriter.GetBuffer(), System.offset, and System.Xml.XmlStreamNodeWriter.UnsafeGetUTF8Chars().

Referenced by System.Xml.XmlUTF8NodeWriter.UnsafeWriteEscapedText(), System.Xml.XmlBinaryNodeWriter.UnsafeWriteName(), System.Xml.XmlBinaryNodeWriter.UnsafeWriteText(), System.Runtime.Serialization.Json.XmlJsonWriter.JsonNodeWriter.WriteChars(), System.Xml.XmlUTF8NodeWriter.WriteText(), System.Xml.XmlStreamNodeWriter.WriteUTF8Char(), and System.Xml.XmlStreamNodeWriter.WriteUTF8Chars().