bytes / net.consensys.cava.bytes / Bytes / ofUnsignedInt

ofUnsignedInt

open static fun ofUnsignedInt(value: Long): Bytes (source)

Return a 4 bytes value corresponding to the provided value interpreted as an unsigned int value.

Parameters

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

Exceptions

IllegalArgumentException - if v < 0 or v is too big to fit an unsigned 4-bytes int (that is, if v >= (1L << 32)).

Return
A 4 bytes value corresponding to v.