From 85bbbb0e5a572b61067f3db188f3cfbda0948e7e Mon Sep 17 00:00:00 2001 From: Green Sky Date: Mon, 16 Dec 2024 00:07:50 +0100 Subject: [PATCH] add const bitset data getter --- solanaceae/util/bitset.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/solanaceae/util/bitset.hpp b/solanaceae/util/bitset.hpp index 2a0c4f4..14bbaa5 100644 --- a/solanaceae/util/bitset.hpp +++ b/solanaceae/util/bitset.hpp @@ -68,6 +68,10 @@ struct BitSet { return _bytes.data(); } + const uint8_t* data(void) const { + return _bytes.data(); + } + size_t size_bits(void) const { return _bytes.size()*8; }