Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Text.ASCIIUtility Class Reference

Static Public Member Functions

static unsafe nuint GetIndexOfFirstNonAsciiByte (byte *pBuffer, nuint bufferLength)
 
static unsafe nuint GetIndexOfFirstNonAsciiChar (char *pBuffer, nuint bufferLength)
 
static unsafe nuint NarrowUtf16ToAscii (char *pUtf16Buffer, byte *pAsciiBuffer, nuint elementCount)
 
static unsafe nuint WidenAsciiToUtf16 (byte *pAsciiBuffer, char *pUtf16Buffer, nuint elementCount)
 

Static Package Functions

static void WidenFourAsciiBytesToUtf16AndWriteToBuffer (ref char outputBuffer, uint value)
 
static bool AllBytesInUInt32AreAscii (uint value)
 
static uint CountNumberOfLeadingAsciiBytesFromUInt32WithSomeNonAsciiData (uint value)
 

Static Private Member Functions

static bool AllBytesInUInt64AreAscii (ulong value)
 
static bool AllCharsInUInt32AreAscii (uint value)
 
static bool AllCharsInUInt64AreAscii (ulong value)
 
static bool FirstCharInUInt32IsAscii (uint value)
 
static unsafe nuint GetIndexOfFirstNonAsciiByte_Default (byte *pBuffer, nuint bufferLength)
 
static bool ContainsNonAsciiByte_Sse2 (uint sseMask)
 
static unsafe nuint GetIndexOfFirstNonAsciiByte_Intrinsified (byte *pBuffer, nuint bufferLength)
 
static unsafe nuint GetIndexOfFirstNonAsciiChar_Default (char *pBuffer, nuint bufferLength)
 
static unsafe nuint GetIndexOfFirstNonAsciiChar_Sse2 (char *pBuffer, nuint bufferLength)
 
static void NarrowFourUtf16CharsToAsciiAndWriteToBuffer (ref byte outputBuffer, ulong value)
 
static void NarrowTwoUtf16CharsToAsciiAndWriteToBuffer (ref byte outputBuffer, uint value)
 
static unsafe nuint NarrowUtf16ToAscii_Sse2 (char *pUtf16Buffer, byte *pAsciiBuffer, nuint elementCount)
 
static unsafe nuint WidenAsciiToUtf16_Intrinsified (byte *pAsciiBuffer, char *pUtf16Buffer, nuint elementCount)
 

Detailed Description

Definition at line 10 of file ASCIIUtility.cs.


The documentation for this class was generated from the following file: