@Override public float readFloat() throws IOException { ensureBounds(4); int len = 1; int n = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); if ((pos + 4) > limit) { throw new EOFException(); } pos += 4; return Float.intBitsToFloat(n); }
@Override public float readFloat() throws IOException { ensureBounds(4); int len = 1; int n = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); if ((pos + 4) > limit) { throw new EOFException(); } pos += 4; return Float.intBitsToFloat(n); }
@Override public double readDouble() throws IOException { ensureBounds(8); int len = 1; int n1 = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); int n2 = (buf[pos + len++] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); if ((pos + 8) > limit) { throw new EOFException(); } pos += 8; return Double.longBitsToDouble((((long) n1) & 0xffffffffL) | (((long) n2) << 32)); }
@Override public double readDouble() throws IOException { ensureBounds(8); int len = 1; int n1 = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); int n2 = (buf[pos + len++] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); if ((pos + 8) > limit) { throw new EOFException(); } pos += 8; return Double.longBitsToDouble((((long) n1) & 0xffffffffL) | (((long) n2) << 32)); }
@Override public int readInt() throws IOException { ensureBounds(5); // won't throw index out of bounds int len = 1; int b = buf[pos] & 0xff;
@Override public int readInt() throws IOException { ensureBounds(5); // won't throw index out of bounds int len = 1; int b = buf[pos] & 0xff;
@Override public long readLong() throws IOException { ensureBounds(10); int b = buf[pos++] & 0xff; int n = b & 0x7f;
@Override public long readLong() throws IOException { ensureBounds(10); int b = buf[pos++] & 0xff; int n = b & 0x7f;
@Override public float readFloat() throws IOException { ensureBounds(4); int len = 1; int n = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); if ((pos + 4) > limit) { throw new EOFException(); } pos += 4; return Float.intBitsToFloat(n); }
@Override public float readFloat() throws IOException { ensureBounds(4); int len = 1; int n = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); if ((pos + 4) > limit) { throw new EOFException(); } pos += 4; return Float.intBitsToFloat(n); }
@Override public float readFloat() throws IOException { ensureBounds(4); int len = 1; int n = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); if ((pos + 4) > limit) { throw new EOFException(); } pos += 4; return Float.intBitsToFloat(n); }
@Override public float readFloat() throws IOException { ensureBounds(4); int len = 1; int n = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); if ((pos + 4) > limit) { throw new EOFException(); } pos += 4; return Float.intBitsToFloat(n); }
@Override public double readDouble() throws IOException { ensureBounds(8); int len = 1; int n1 = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); int n2 = (buf[pos + len++] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); if ((pos + 8) > limit) { throw new EOFException(); } pos += 8; return Double.longBitsToDouble((((long) n1) & 0xffffffffL) | (((long) n2) << 32)); }
@Override public double readDouble() throws IOException { ensureBounds(8); int len = 1; int n1 = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); int n2 = (buf[pos + len++] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); if ((pos + 8) > limit) { throw new EOFException(); } pos += 8; return Double.longBitsToDouble((((long) n1) & 0xffffffffL) | (((long) n2) << 32)); }
@Override public double readDouble() throws IOException { ensureBounds(8); int len = 1; int n1 = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); int n2 = (buf[pos + len++] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); if ((pos + 8) > limit) { throw new EOFException(); } pos += 8; return Double.longBitsToDouble((((long) n1) & 0xffffffffL) | (((long) n2) << 32)); }
@Override public double readDouble() throws IOException { ensureBounds(8); int len = 1; int n1 = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); int n2 = (buf[pos + len++] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16) | ((buf[pos + len++] & 0xff) << 24); if ((pos + 8) > limit) { throw new EOFException(); } pos += 8; return Double.longBitsToDouble((((long) n1) & 0xffffffffL) | (((long) n2) << 32)); }
@Override public int readInt() throws IOException { ensureBounds(5); // won't throw index out of bounds int len = 1; int b = buf[pos] & 0xff;
@Override public int readInt() throws IOException { ensureBounds(5); // won't throw index out of bounds int len = 1; int b = buf[pos] & 0xff;
@Override public int readInt() throws IOException { ensureBounds(5); // won't throw index out of bounds int len = 1; int b = buf[pos] & 0xff;
@Override public int readInt() throws IOException { ensureBounds(5); // won't throw index out of bounds int len = 1; int b = buf[pos] & 0xff;