tuweni / org.apache.tuweni.bytes / Bytes / xor

xor

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

Return a bit-wise XOR 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 XOR.

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

Calculate a bit-wise XOR 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.