ValueUInt16

class dsviper.ValueUInt16(initial_value=None)

Bases: object

A class used to represent a value of type uint16. Seamless with a Python int.

Or use Value.create(Type.UINT16 [, initial_value]).

ONE = 1
ZERO = 0
static cast(value: Value) ValueUInt16

Return an uint16 or raise.

copy() ValueUInt16

Return a deep copy.

description(*, namespace: NameSpace | None = None) str

Return the description.

encoded() int

Return a Python int.

hash() int

Return the hash value.

representation() str

Return the representation.

static try_parse(string: str) ValueUInt16 | None

Return an uint16 or None.

type() Type

Return the type.

type_code() str

Return the type code.