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

◆ UnsafeWriteUnicodeChars()

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

Definition at line 281 of file XmlStreamNodeWriter.cs.

282 {
283 while (charCount > 256)
284 {
285 int num = 256;
286 if ((chars[num - 1] & 0xFC00) == 55296)
287 {
288 num--;
289 }
290 int offset;
291 byte[] buffer = GetBuffer(num * 2, out offset);
293 charCount -= num;
294 chars += num;
295 }
296 if (charCount > 0)
297 {
298 int offset2;
299 byte[] buffer2 = GetBuffer(charCount * 2, out offset2);
301 }
302 }
unsafe int UnsafeGetUnicodeChars(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.UnsafeGetUnicodeChars().

Referenced by System.Xml.XmlBinaryNodeWriter.UnsafeWriteText().