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

◆ WriteUTF8Char()

unsafe void System.Xml.XmlStreamNodeWriter.WriteUTF8Char ( int ch)
inlineprotectedinherited

Definition at line 208 of file XmlStreamNodeWriter.cs.

209 {
210 if (ch < 128)
211 {
212 WriteByte((byte)ch);
213 }
214 else if (ch <= 65535)
215 {
216 char* ptr = stackalloc char[1];
217 *ptr = (char)ch;
219 }
220 else
221 {
223 char* ptr2 = stackalloc char[2];
224 *ptr2 = surrogateChar.HighChar;
225 ptr2[1] = surrogateChar.LowChar;
227 }
228 }
unsafe void UnsafeWriteUTF8Chars(char *chars, int charCount)

References System.ch, System.Xml.Dictionary, System.Xml.XmlStreamNodeWriter.UnsafeWriteUTF8Chars(), and System.Xml.XmlStreamNodeWriter.WriteByte().

Referenced by System.Xml.XmlUTF8NodeWriter.WritePrefix(), System.Xml.XmlUTF8NodeWriter.WritePrefix(), and System.Xml.XmlUTF8NodeWriter.WriteText().