tuweni / org.apache.tuweni.units.bigints / UInt32 / xor

xor

fun xor(value: UInt32): UInt32 (source)

Return a bit-wise XOR of this value and the supplied value. If this value and the supplied value are different lengths, then the shorter will be zero-padded to the left.

Parameters

value - the value to perform the operation with

Exceptions

IllegalArgumentException - if more than 8 bytes are supplied

Return
the result of a bit-wise XOR

fun xor(bytes: Bytes): UInt32 (source)

Return a bit-wise XOR of this value and the supplied bytes.

Parameters

bytes - the bytes to perform the operation with

Exceptions

IllegalArgumentException - if more than 8 bytes are supplied

Return
the result of a bit-wise XOR