5 instantiations of Utf8Char
System.Runtime.Numerics (5)
System\Number.Polyfill.cs (5)
63public static Utf8Char CastFrom(byte value) => new(value); 64public static Utf8Char CastFrom(char value) => new((byte)value); 65public static Utf8Char CastFrom(int value) => new((byte)value); 66public static Utf8Char CastFrom(uint value) => new((byte)value); 67public static Utf8Char CastFrom(ulong value) => new((byte)value);
36 references to Utf8Char
System.Runtime.Numerics (36)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder_1.cs (3)
23Debug.Assert((typeof(TChar) == typeof(Utf8Char)) || (typeof(TChar) == typeof(Utf16Char))); 32Debug.Assert((typeof(TChar) == typeof(Utf8Char)) || (typeof(TChar) == typeof(Utf16Char))); 104if (typeof(TChar) == typeof(Utf8Char))
System\Number.BigInteger.cs (5)
935BigIntegerToDecChars(Unsafe.BitCast<Span<byte>, Span<Utf8Char>>(number.Digits.Slice(0, valueDigits)), base1E9Value, valueDigits); 962if (typeof(TChar) == typeof(Utf8Char)) 1012if (typeof(TChar) == typeof(Utf8Char)) 1587if (typeof(TChar) == typeof(Utf8Char)) 1636if ((typeof(TChar) == typeof(Utf8Char))
System\Number.Polyfill.cs (10)
56internal readonly struct Utf8Char(byte ch) : IUtfChar<Utf8Char> 63public static Utf8Char CastFrom(byte value) => new(value); 64public static Utf8Char CastFrom(char value) => new((byte)value); 65public static Utf8Char CastFrom(int value) => new((byte)value); 66public static Utf8Char CastFrom(uint value) => new((byte)value); 67public static Utf8Char CastFrom(ulong value) => new((byte)value); 68public static uint CastToUInt32(Utf8Char value) => value.value; 69public bool Equals(Utf8Char other) => value == other.value; 119if (typeof(TChar) == typeof(Utf8Char)) 133if (typeof(TChar) == typeof(Utf8Char))
System\Numerics\BigInteger.cs (4)
840return Number.ParseBigInteger(MemoryMarshal.Cast<byte, Utf8Char>(utf8Text), style, NumberFormatInfo.GetInstance(provider)); 860return Number.TryParseBigInteger(MemoryMarshal.Cast<byte, Utf8Char>(utf8Text), style, NumberFormatInfo.GetInstance(provider), out result, out _) == Number.ParsingStatus.OK; 872return Number.TryParseBigIntegerPartial(MemoryMarshal.Cast<byte, Utf8Char>(utf8Text), style, NumberFormatInfo.GetInstance(provider), out result, out bytesConsumed) == Number.ParsingStatus.OK; 2329return Number.TryFormatBigInteger(this, format, NumberFormatInfo.GetInstance(provider), MemoryMarshal.Cast<byte, Utf8Char>(utf8Destination), out bytesWritten);
System\Numerics\Complex.cs (6)
814return Complex<double>.TryParse(MemoryMarshal.Cast<byte, Utf8Char>(utf8Text), style, provider, out Unsafe.As<Complex, Complex<double>>(ref result), out _); 828return Complex<double>.TryParsePartial(MemoryMarshal.Cast<byte, Utf8Char>(utf8Text), style, provider, out Unsafe.As<Complex, Complex<double>>(ref result), out bytesConsumed); 871TryFormat(MemoryMarshal.Cast<byte, Utf8Char>(utf8Destination), out bytesWritten, format, provider); 876Debug.Assert(typeof(TChar) == typeof(Utf8Char) || typeof(TChar) == typeof(Utf16Char)); 881if ((typeof(TChar) == typeof(Utf8Char)) 891if ((typeof(TChar) == typeof(Utf8Char))
System\Numerics\Complex.Generic.cs (8)
1896=> TryParse(MemoryMarshal.Cast<byte, Utf8Char>(utf8Text), style, provider, out result, out _); 1904=> TryParsePartial(MemoryMarshal.Cast<byte, Utf8Char>(utf8Text), style, provider, out result, out bytesConsumed); 1961if ((typeof(TChar) == typeof(Utf8Char)) 1982if ((typeof(TChar) == typeof(Utf8Char)) 2077TryFormat(MemoryMarshal.Cast<byte, Utf8Char>(utf8Destination), out bytesWritten, format, provider); 2082Debug.Assert(typeof(TChar) == typeof(Utf8Char) || typeof(TChar) == typeof(Utf16Char)); 2087if ((typeof(TChar) == typeof(Utf8Char)) 2097if ((typeof(TChar) == typeof(Utf8Char))