bytes / net.consensys.cava.bytes / Bytes / ofUnsignedShort

ofUnsignedShort

open static fun ofUnsignedShort(value: Int): Bytes (source)

Return a 2 bytes value corresponding to the provided value interpreted as an unsigned short value.

Parameters

value - The value, which must fit an unsigned short.

Exceptions

IllegalArgumentException - if v < 0 or v is too big to fit an unsigned 2-bytes short (that is, if v >= (1 << 16)).

Return
A 2 bytes value corresponding to v.