for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}