tuweni / org.apache.tuweni.bytes / Bytes / or

or

open fun or(other: Bytes!): Bytes! (source)

Return a bit-wise OR of these bytes and the supplied bytes.

If this value and the supplied value are different lengths, then the shorter will be zero-padded to the left.

Parameters

other - Bytes!: The bytes to perform the operation with.

Return
Bytes!: The result of a bit-wise OR.

open fun <T : MutableBytes!> or(other: Bytes!, result: T): T (source)

Calculate a bit-wise OR of these bytes and the supplied bytes.

If this value or the supplied value are shorter in length than the output vector, then they will be zero-padded to the left. Likewise, if either this value or the supplied valid is longer in length than the output vector, then they will be truncated to the left.

Parameters

other - Bytes!: The bytes to perform the operation with.

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

- The MutableBytes value type.

Return
T: The result output vector.