DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="5.16.0" />

 BinaryTransformations

public static class BinaryTransformations
Provides various binary transformations.

Performs bitwise AND-NOT operation between two vectors in-place.

Performs bitwise AND operation between two vectors in-place.

Performs bitwise OR operation between two vectors in-place.

Performs bitwise XOR operation between two vectors in-place.

Inverts all bits within the provided vector in-place.

public static void Reverse<T>(ref T value) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Reverse bytes in the specified value of blittable type.