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

◆ UnsafeGetUnicodeChars()

unsafe int System.Xml.XmlStreamNodeWriter.UnsafeGetUnicodeChars ( char * chars,
int charCount,
byte[] buffer,
int offset )
inlineprotectedinherited

Definition at line 304 of file XmlStreamNodeWriter.cs.

305 {
306 char* ptr = chars + charCount;
307 while (chars < ptr)
308 {
309 char c = *(chars++);
310 buffer[offset++] = (byte)c;
311 c = (char)((int)c >> 8);
312 buffer[offset++] = (byte)c;
313 }
314 return charCount * 2;
315 }

References System.buffer, System.charCount, System.chars, System.Xml.Dictionary, and System.offset.

Referenced by System.Xml.XmlBinaryNodeWriter.UnsafeWriteText(), and System.Xml.XmlStreamNodeWriter.UnsafeWriteUnicodeChars().