DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.10.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 ReverseEndianness(this Span<short> buffer)

Reverse endianness of 16-bit signed integers in-place.

public static void ReverseEndianness(this Span<ushort> buffer)

Reverse endianness of 16-bit unsigned integers in-place.

public static void ReverseEndianness(this Span<int> buffer)

Reverse endianness of 32-bit signed integers in-place.

public static void ReverseEndianness(this Span<uint> buffer)

Reverse endianness of 32-bit unsigned integers in-place.

public static void ReverseEndianness(this Span<long> buffer)

Reverse endianness of 64-bit signed integers in-place.

public static void ReverseEndianness(this Span<ulong> buffer)

Reverse endianness of 64-bit unsigned integers in-place.