tuweni / org.apache.tuweni.bytes / Bytes48 / rightPad

rightPad

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

Right 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 rightw-padded bytes of value.