Gets the i-th bit from a byte. Should only be used with i <= 7.
| 176 | |
| 177 | // Gets the i-th bit from a byte. Should only be used with i <= 7. |
| 178 | static constexpr bool GetBitFromByte(uint8_t byte, uint8_t i) { |
| 179 | return byte & kBitmask[i]; |
| 180 | } |
| 181 | |
| 182 | template <typename Uint> |
| 183 | struct CopyBitsParams { |