Closed crzysdrs closed 4 years ago
Fixes #11.
I have added the requested additional value checks to verify correctness of the field settings.
The get<T>
function is only selecting for bits that it needs and doesn't need to preserve potentially disjoint bit values within a single byte (which was the issue here).
Manipulations that targeted a single byte for both the MSB and LSB would not properly preserve any bits above the MSB.