Add SetBit, and FlipBit methods to block
This commit is contained in:
@@ -126,6 +126,12 @@ namespace Leonetienne::GCrypt {
|
||||
//! Will return the state of any given bit
|
||||
[[nodiscard]] bool GetBit(const std::size_t index) const;
|
||||
|
||||
//! Will set the state of any given bit
|
||||
void SetBit(const std::size_t index, const bool state);
|
||||
|
||||
//! Will flip the state of any given bit
|
||||
void FlipBit(const std::size_t index);
|
||||
|
||||
//! Returns 32-bit chunks of data, indexed by matrix coordinates (0-3)
|
||||
[[nodiscard]] std::uint32_t& Get(const std::uint8_t row, const std::uint8_t column);
|
||||
//! Returns 32-bit chunks of data, indexed by matrix coordinates (0-3)
|
||||
|
Reference in New Issue
Block a user