xor
The bytewise XOR of two slices of the same length.
Import
Section titled “Import”Cargo feature bytes (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
a | &[u8] | The first slice. |
b | &[u8] | The second slice. |
Returns
Section titled “Returns”Option<Vec<u8>> — A new Vec whose byte i is a[i] ^ b[i], or None when the lengths differ.
