value · System
UInt16
public value UInt16 : INumber<u16>, IHashable<u16>, IComparable<u16>, IToString
- Kind
- value
- Namespace
- System
- Assembly
- System.Core
- Access
- public, members of u16
- 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
UInt16 as Antril, decompiled from its Larva HIR.
// System.UInt16 — System.Core (decompiled from Larva HIR)
into namespace System
{
[Primitive("u16")]
public value UInt16 : INumber<u16>, IHashable<u16>, IComparable<u16>, IToString
{
public:
/// The smallest u16.
const u16 MinValue = 0;
/// The largest u16.
const u16 MaxValue = 65535;
[Inline]
static FromF64(f64 value) : u16 => (u16)value;
[Inline]
static ToF64(u16 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, 16, false, format);
ToString() : str => Number.Format((i64)this);
Hash() : u64 => this;
Equals(u16 other) : bool => this == other;
CompareTo(u16 other) : i32 => this < other ? -1 : this > other ? 1 : 0;
static u16 Zero
{
get => 0;
}
static u16 One
{
get => 1;
}
}
}