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

◆ GetBytesFast()

unsafe override int System.Text.ASCIIEncoding.GetBytesFast ( char * pChars,
int charsLength,
byte * pBytes,
int bytesLength,
out int charsConsumed )
inlinesealedprotectedvirtualinherited

Reimplemented from System.Text.Encoding.

Definition at line 210 of file ASCIIEncoding.cs.

211 {
212 return charsConsumed = (int)ASCIIUtility.NarrowUtf16ToAscii(pChars, pBytes, (uint)Math.Min(charsLength, bytesLength));
213 }

References System.Math.Min(), and System.Text.ASCIIUtility.NarrowUtf16ToAscii().

Referenced by System.Text.ASCIIEncoding.GetBytesCommon().