Change Field.read to const.

This commit is contained in:
Jared Boone 2015-11-05 09:06:41 -08:00
parent a33aa26bf5
commit 5236a858d0

View File

@ -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;
for(size_t i=start_bit; i<(start_bit + length); i++) {
value = (value << 1) | data[bit_remap(i)];