Add SetBit, and FlipBit methods to block

This commit is contained in:
Leonetienne
2022-05-24 23:51:17 +02:00
parent e552e1a6f8
commit 9a9cd05bed
3 changed files with 104 additions and 1 deletions

View File

@@ -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)