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

◆ CharEntity()

static unsafe byte * System.Xml.XmlUtf8RawTextWriter.CharEntity ( byte * pDst,
char ch )
inlinestaticprivateinherited

Definition at line 1321 of file XmlUtf8RawTextWriter.cs.

1322 {
1323 int num = ch;
1324 string text = num.ToString("X", NumberFormatInfo.InvariantInfo);
1325 *pDst = 38;
1326 pDst[1] = 35;
1327 pDst[2] = 120;
1328 pDst += 3;
1329 fixed (char* ptr = text)
1330 {
1331 char* ptr2 = ptr;
1332 while ((*(pDst++) = (byte)(*(ptr2++))) != 0)
1333 {
1334 }
1335 }
1336 pDst[-1] = 59;
1337 return pDst;
1338 }

References System.ch, System.Xml.Dictionary, System.Globalization.NumberFormatInfo.InvariantInfo, and System.text.

Referenced by System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar().