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

◆ GetCharsCommon()

unsafe int System.Text.ASCIIEncoding.GetCharsCommon ( byte * pBytes,
int byteCount,
char * pChars,
int charCount )
inlineprivateinherited

Definition at line 369 of file ASCIIEncoding.cs.

370 {
371 int bytesConsumed;
372 int charsFast = GetCharsFast(pBytes, byteCount, pChars, charCount, out bytesConsumed);
373 if (bytesConsumed == byteCount)
374 {
375 return charsFast;
376 }
377 return GetCharsWithFallback(pBytes, byteCount, pChars, charCount, bytesConsumed, charsFast);
378 }
unsafe override int GetCharsFast(byte *pBytes, int bytesLength, char *pChars, int charsLength, out int bytesConsumed)
unsafe override int GetCharsWithFallback(ReadOnlySpan< byte > bytes, int originalBytesLength, Span< char > chars, int originalCharsLength, DecoderNLS decoder)

References System.byteCount, System.charCount, System.Text.ASCIIEncoding.GetCharsFast(), and System.Text.ASCIIEncoding.GetCharsWithFallback().

Referenced by System.Text.ASCIIEncoding.GetChars(), System.Text.ASCIIEncoding.GetChars(), and System.Text.ASCIIEncoding.GetChars().