tuweni / org.apache.tuweni.bytes / Bytes / minimalBytes

minimalBytes

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

Return the smallest bytes value whose bytes correspond to the provided long. That is, the returned value may be of size less than 8 if the provided long has leading zero bytes.

Parameters

value - The long from which to create the bytes value.

Return
The minimal bytes representation corresponding to l.