| 32 | |
| 33 | template <typename T> |
| 34 | void SetStateByte(T & state, uint8_t value, uint8_t byteNumber) |
| 35 | { |
| 36 | auto const shift = byteNumber * 8; |
| 37 | auto const mask = ~(static_cast<T>(0xFF) << shift); |
| 38 | state = (state & mask) | (static_cast<T>(value) << shift); |
| 39 | } |
| 40 | |
| 41 | template <typename T> |
| 42 | uint8_t GetStateByte(T & state, uint8_t byteNumber) |
no outgoing calls
no test coverage detected