sharplib/bit
Marc Hernandez 6f63f550fa Title: Added Bitwise.cs for bitwise operations on enums
x) Created a new file, Bitwise.cs, which includes two static methods for performing bitwise operations on enums.
x) The method `ByPointers_DirectInt` directly converts an enum value to its integer representation using unsafe code and pointer manipulation. This is useful when we need the exact binary representation of an enum.
x) The method `On` checks if a specific bit (represented by an enum value) is set in a given bitfield. It uses the `ByPointers_DirectInt` method to convert the enum value to its integer equivalent before performing the bitwise operation.
x) These changes provide more efficient ways of handling bitwise operations with enums in our codebase.
2024-07-22 18:47:54 -07:00
..
Bitwise.cs Title: Added Bitwise.cs for bitwise operations on enums 2024-07-22 18:47:54 -07:00