class BitBufferHelper {

    public static int getLSBMask(int numBits) {
        int mask = 0;
        for (int i = 0; i < numBits; i++) {
            mask = mask | 1 << i;
        }
        return mask;
    }

    private  BitBufferHelper();

}