bytes / org.apache.tuweni.bytes / Bytes48 / leftPad

leftPad

open static fun leftPad(value: Bytes): Bytes48 (source)

Left pad a Bytes value with zero bytes to create a Bytes48.

Parameters

value - The bytes value pad.

Exceptions

IllegalArgumentException - if value.size() > 48.

Return
A Bytes48 that exposes the left-padded bytes of value.