ValueInt16

class dsviper.ValueInt16(initial_value=None)

Bases: object

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

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

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

Return an int16 or raise.

copy() ValueInt16

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) ValueInt16 | None

Return an int16 or None.

type() Type

Return the type.

type_code() str

Return the type code.