Lines Matching refs:bits
32 // The current position offset, in bits, from the msb in byte 0.
71 * @param bits the amount of data to read (gte 0, lte 8)
74 public int read(int bits) throws AccessException {
76 int offset = 16 - (mPos & 0x07) - bits; // &7==%8
77 if ((bits < 0) || (bits > 8) || ((mPos + bits) > mEnd)) {
79 "(pos " + mPos + ", end " + mEnd + ", bits " + bits + ")");
84 data &= (-1 >>> (32 - bits));
85 mPos += bits;
92 * @param bits the amount of data to read
95 public byte[] readByteArray(int bits) throws AccessException {
96 int bytes = (bits >>> 3) + ((bits & 0x07) > 0 ? 1 : 0); // &7==%8
99 int increment = Math.min(8, bits - (i << 3));
108 * @param bits the amount by which to increment the position
110 public void skip(int bits) throws AccessException {
111 if ((mPos + bits) > mEnd) {
113 "(pos " + mPos + ", end " + mEnd + ", bits " + bits + ")");
115 mPos += bits;