tuweni / org.apache.tuweni.bytes / Bytes32 / rightPad

rightPad

open static fun rightPad(value: Bytes!): Bytes32! (source)

Right pad a Bytes value with zero bytes to create a Bytes32.

Parameters

value - Bytes!: The bytes value pad.

Exceptions

IllegalArgumentException - if value.size() > 32.

Return
Bytes32!: A Bytes32 that exposes the rightw-padded bytes of value.