5 instantiations of Utf8Char
System.Runtime.Numerics (5)
System\Number.Polyfill.cs (5)
58public static Utf8Char CastFrom(byte value) => new(value); 59public static Utf8Char CastFrom(char value) => new((byte)value); 60public static Utf8Char CastFrom(int value) => new((byte)value); 61public static Utf8Char CastFrom(uint value) => new((byte)value); 62public static Utf8Char CastFrom(ulong value) => new((byte)value);
28 references to Utf8Char
System.Runtime.Numerics (28)
src\libraries\Common\src\System\Text\ValueStringBuilder_1.cs (3)
22Debug.Assert((typeof(TChar) == typeof(Utf8Char)) || (typeof(TChar) == typeof(Utf16Char))); 31Debug.Assert((typeof(TChar) == typeof(Utf8Char)) || (typeof(TChar) == typeof(Utf16Char))); 100if (typeof(TChar) == typeof(Utf8Char))
System\Number.BigInteger.cs (5)
781if (typeof(TChar) == typeof(Utf8Char)) 894BigIntegerToDecChars((Utf8Char*)ptr + valueDigits, base1E9Value, valueDigits); 921if (typeof(TChar) == typeof(Utf8Char)) 1406if (typeof(TChar) == typeof(Utf8Char)) 1453if ((typeof(TChar) == typeof(Utf8Char))
System\Number.Polyfill.cs (10)
53internal readonly struct Utf8Char(byte ch) : IUtfChar<Utf8Char> 58public static Utf8Char CastFrom(byte value) => new(value); 59public static Utf8Char CastFrom(char value) => new((byte)value); 60public static Utf8Char CastFrom(int value) => new((byte)value); 61public static Utf8Char CastFrom(uint value) => new((byte)value); 62public static Utf8Char CastFrom(ulong value) => new((byte)value); 63public static uint CastToUInt32(Utf8Char value) => value.value; 64public bool Equals(Utf8Char other) => value == other.value; 111return (typeof(TChar) == typeof(Utf8Char)) 120if (typeof(TChar) == typeof(Utf8Char))
System\Numerics\BigInteger.cs (3)
707return Number.ParseBigInteger(MemoryMarshal.Cast<byte, Utf8Char>(utf8Text), style, NumberFormatInfo.GetInstance(provider)); 727return Number.TryParseBigInteger(MemoryMarshal.Cast<byte, Utf8Char>(utf8Text), style, NumberFormatInfo.GetInstance(provider), out result) == Number.ParsingStatus.OK; 1693return Number.TryFormatBigInteger(this, format, NumberFormatInfo.GetInstance(provider), MemoryMarshal.Cast<byte, Utf8Char>(utf8Destination), out bytesWritten);
System\Numerics\Complex.cs (7)
2139=> TryParse(MemoryMarshal.Cast<byte, Utf8Char>(utf8Text), style, provider, out result); 2170if ((typeof(TChar) == typeof(Utf8Char)) 2190if ((typeof(TChar) == typeof(Utf8Char)) 2268TryFormat(MemoryMarshal.Cast<byte, Utf8Char>(utf8Destination), out bytesWritten, format, provider); 2273Debug.Assert(typeof(TChar) == typeof(Utf8Char) || typeof(TChar) == typeof(Utf16Char)); 2278if ((typeof(TChar) == typeof(Utf8Char)) 2288if ((typeof(TChar) == typeof(Utf8Char))