tuweni / org.apache.tuweni.bytes / Bytes / shiftLeft

shiftLeft

open fun shiftLeft(distance: Int): Bytes! (source)

Shift all bits in this value to the left.

Parameters

distance - Int: The number of bits to shift by.

Return
Bytes!: A value containing the shifted bits.

open fun <T : MutableBytes!> shiftLeft(distance: Int, result: T): T (source)

Shift all bits in this value to the left.

If this value is shorter in length than the output vector, then it will be zero-padded to the left. Likewise, if this value is longer in length than the output vector, then it will be truncated to the left.

Parameters

distance - Int: The number of bits to shift by.

result - T: The mutable output vector for the result.

- The MutableBytes value type.

Return
T: The result output vector.