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 - Long: The long from which to create the bytes value.

Return
Bytes!: The minimal bytes representation corresponding to l.