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

◆ TryFormatUInt32SingleDigit()

static bool System.Buffers.Text.Utf8Formatter.TryFormatUInt32SingleDigit ( uint value,
Span< byte > destination,
out int bytesWritten )
inlinestaticprivate

Definition at line 992 of file Utf8Formatter.cs.

993 {
994 if (destination.Length == 0)
995 {
996 bytesWritten = 0;
997 return false;
998 }
999 destination[0] = (byte)(48 + value);
1000 bytesWritten = 1;
1001 return true;
1002 }

References System.destination, and System.value.

Referenced by System.Buffers.Text.Utf8Formatter.TryFormatInt64Default(), and System.Buffers.Text.Utf8Formatter.TryFormatUInt64Default().