예제 #1
0
 /// <summary>
 /// Creates an exact copy of this <see cref="Slice"/>.
 /// </summary>
 public Slice Clone() =>
 new Slice(
     numCoefficients: NumCoefficients,
     numData: NumData,
     packedCoefficients: PackedCoefficients.ToArray(),
     packedData: PackedData.ToArray()
     );
예제 #2
0
 /// <summary>
 /// Quickly performs a bitwise XOR into this <see cref="Slice"/>'s coefficients and data from the given
 /// <see cref="Slice"/>.
 /// </summary>
 public void Xor(
     Slice from)
 {
     PackedCoefficients.Xor(@from.PackedCoefficients);
     PackedData.Xor(@from.PackedData);
 }