Method Xor
Xor(ref int, int)
A thread-safe exclusive OR operation on a variable value.
public static int Xor(ref int location1, int value)
Parameters
location1intA variable containing the first value to perform the XOR operation on. The result is stored in this variable.
valueintThe value to be combined with the value in
location1
Returns
- int
The original value in
location1
Xor(ref uint, uint)
A thread-safe exclusive OR operation on a variable value.
public static uint Xor(ref uint location1, uint value)
Parameters
location1uintA variable containing the first value to perform the XOR operation on. The result is stored in this variable.
valueuintThe value to be combined with the value in
location1
Returns
- uint
The original value in
location1
Xor(ref long, long)
A thread-safe exclusive OR operation on a variable value.
public static long Xor(ref long location1, long value)
Parameters
location1longA variable containing the first value to perform the XOR operation on. The result is stored in this variable.
valuelongThe value to be combined with the value in
location1
Returns
- long
The original value in
location1
Xor(ref ulong, ulong)
A thread-safe exclusive OR operation on a variable value.
public static ulong Xor(ref ulong location1, ulong value)
Parameters
location1ulongA variable containing the first value to perform the XOR operation on. The result is stored in this variable.
valueulongThe value to be combined with the value in
location1
Returns
- ulong
The original value in
location1