Const
Casts a number to the Uint8 branded type.
number
Uint8
Validates that the value is an non-negative integer less than 256 and returns it with the Uint8 brand. Throws a TypeError otherwise.
TypeError
The value to cast
The value as an Uint8
If the value is not an non-negative integer less than 256
Casts a
numberto theUint8branded type.Validates that the value is an non-negative integer less than 256 and returns it with the
Uint8brand. Throws aTypeErrorotherwise.