struct · System

UInt16

public struct System.UInt16 : System.INumber<u16>, System.IHashable<u16>, System.IComparable<u16>, System.IToString
Kind
struct
Namespace
System
Assembly
System.Core
Access
public, members of u16
Source file
Primitives.ant

Inheritance

Interfaces
INumber<TSelf> IHashable<TSelf> IComparable<TSelf> IToString

Properties

static property Zero: u16
#

static read-only

static property One: u16
#

static read-only

Methods

static method FromF64(value: f64) -> u16
#

static

static method ToF64(value: u16) -> f64
#

static

method ToString(format: System.String<u8>) -> System.String<u8>
#

As text by a format: D, X, B, N, F, E, P, G and a precision (255.ToString("X4") is "00FF").

method ToString() -> System.String<u8>
#
method Hash() -> u64
#
method Equals(other: u16) -> bool
#
method CompareTo(other: u16) -> i32
#

Constants

static constant MinValue: u16
#

The smallest u16.

static constant MaxValue: u16
#

The largest u16.

Source

UInt16 as Larva HIR, decompiled from its Larva HIR.

System.UInt16.hir
public struct System.UInt16 : System.INumber<u16>, System.IHashable<u16>, System.IComparable<u16>, System.IToString
{
    // The smallest u16.
    static constant MinValue: u16
    // The largest u16.
    static constant MaxValue: u16
    static method FromF64(value: f64) -> u16
    static method ToF64(value: u16) -> f64
    // As text by a format: D, X, B, N, F, E, P, G and a precision (`255.ToString("X4")` is "00FF").
    method ToString(format: System.String<u8>) -> System.String<u8>
    method ToString() -> System.String<u8>
    method Hash() -> u64
    method Equals(other: u16) -> bool
    method CompareTo(other: u16) -> i32
    static property Zero: u16
    static property One: u16
}
Esc