mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 23:09:26 -05:00
Change Field.read to const.
This commit is contained in:
parent
a33aa26bf5
commit
5236a858d0
@ -41,7 +41,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t read(const size_t start_bit, const size_t length) {
|
uint32_t read(const size_t start_bit, const size_t length) const {
|
||||||
uint32_t value = 0;
|
uint32_t value = 0;
|
||||||
for(size_t i=start_bit; i<(start_bit + length); i++) {
|
for(size_t i=start_bit; i<(start_bit + length); i++) {
|
||||||
value = (value << 1) | data[bit_remap(i)];
|
value = (value << 1) | data[bit_remap(i)];
|
||||||
|
Loading…
Reference in New Issue
Block a user