public static byte reverseBitsInByte ( final JBBPBitNumber bitNumber , final byte value ) { final byte reversed = reverseBitsInByte ( value ) ; return ( byte ) ( ( reversed >>> ( 8 - bitNumber . getBitNumber ( ) ) ) & bitNumber . getMask ( ) ) ; }
Reverse lower part of a byte defined by bits number constant .