value · System
UInt8
public value UInt8 : INumber<u8>, IHashable<u8>, IComparable<u8>, IToString
- Kind
- value
- Namespace
- System
- Assembly
- System.Core
- Access
- public, members of u8
- Source file
Primitives.ant
Inheritance
Properties
Methods
ToString(str format) : str
#
As text by a format: D, X, B, N, F, E, P, G and a precision (255.ToString("X4") is "00FF").
ToString() : str
#
Constants
Source
UInt8 as Antril, decompiled from its Larva HIR.
// System.UInt8 — System.Core (decompiled from Larva HIR)
into namespace System
{
[Primitive("u8")]
public value UInt8 : INumber<u8>, IHashable<u8>, IComparable<u8>, IToString
{
public:
/// The smallest u8.
const u8 MinValue = 0;
/// The largest u8.
const u8 MaxValue = 255;
[Inline]
static FromF64(f64 value) : u8 => (u8)value;
[Inline]
static ToF64(u8 value) : f64 => value;
/// As text by a format: D, X, B, N, F, E, P, G and a precision (`255.ToString("X4")` is "00FF").
ToString(str format) : str => NumberFormat.FormatInteger(this, 8, false, format);
ToString() : str => Number.Format((i64)this);
Hash() : u64 => this;
Equals(u8 other) : bool => this == other;
CompareTo(u8 other) : i32 => this < other ? -1 : this > other ? 1 : 0;
static u8 Zero
{
get => 0;
}
static u8 One
{
get => 1;
}
}
}