Add SetBit, and FlipBit methods to block

This commit is contained in:
Leonetienne committed 2022-05-24 23:51:17 +02:00
1 parent ac4b389efc
commit d8a39ad46f
3 files changed
+104 -1

No files matched your search

+6
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)