Const
Casts a number to the Uint16 branded type.
number
Uint16
Validates that the value is a non-negative integer less than 2^16 and returns it with the Uint16 brand. Throws a TypeError otherwise.
TypeError
The value as an Uint16
If the value is not a non-negative integer less than 2^16
Casts a
numberto theUint16branded type.Validates that the value is a non-negative integer less than 2^16 and returns it with the
Uint16brand. Throws aTypeErrorotherwise.