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.
other
- The bytes to perform the operation with.
Return
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.
other
- The bytes to perform the operation with.
result
- The mutable output vector for the result.
- The MutableBytes value type.
Return
The result
output vector.