tuweni / 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 - Bytes!: The bytes value pad.

Exceptions

IllegalArgumentException - if value.size() > 48.

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