uint16 – glib-2.0 Reference Manual
Packages
glib-2.0
uint16
FORMAT
FORMAT_MODIFIER
MAX
MIN
from_big_endian
from_little_endian
from_network
max
min
to_network
clamp
swap_big_endian_pdp
swap_little_endian_big_endian
swap_little_endian_pdp
to_big_endian
to_little_endian
to_string
uint16
Object Hierarchy:
Description:
[
SimpleType
]
public
struct
uint16
Package:
glib-2.0
Content:
Constants:
public
const
uint16
MIN
public
const
uint16
MAX
The maximum value which can be held in a
uint16
.
public
const
unowned
string
FORMAT
This is the platform dependent conversion specifier for scanning and printing values of type
uint16
.
public
const
unowned
string
FORMAT_MODIFIER
The platform dependent length modifier for conversion specifiers for scanning and printing values of type
int16
or
uint16
.
Static methods:
public
static
uint16
min
(
uint16
a,
uint16
b)
public
static
uint16
max
(
uint16
a,
uint16
b)
public
static
uint16
from_big_endian
(
uint16
val)
public
static
uint16
from_little_endian
(
uint16
val)
public
static
uint16
to_network
(
uint16
val)
public
static
uint16
from_network
(
uint16
val)
Methods:
public
string
to_string
(
string
format =
"%hu"
)
public
uint16
clamp
(
uint16
low,
uint16
high)
public
uint16
to_big_endian
()
public
uint16
to_little_endian
()
public
uint16
swap_big_endian_pdp
()
public
uint16
swap_little_endian_big_endian
()
public
uint16
swap_little_endian_pdp
()