Lines Matching refs:buf

847      * @param   buf the buffer into which the data is read
855 public int read(byte[] buf, int off, int len) throws IOException {
856 if (buf == null) {
860 if (off < 0 || len < 0 || endoff > buf.length || endoff < 0) {
863 return bin.read(buf, off, len, false);
1008 * @param buf the buffer into which the data is read
1012 public void readFully(byte[] buf) throws IOException {
1013 bin.readFully(buf, 0, buf.length, false);
1019 * @param buf the buffer into which the data is read
1025 public void readFully(byte[] buf, int off, int len) throws IOException {
1027 if (off < 0 || len < 0 || endoff > buf.length || endoff < 0) {
1030 bin.readFully(buf, off, len, false);
2373 private final byte[] buf = new byte[MAX_BLOCK_SIZE];
2383 /** current offset into buf */
2385 /** end offset of valid data in buf, or -1 if no more block data */
2521 * Refills internal buffer buf with block data. Any data in buf at the
2533 in.read(buf, 0, Math.min(unread, MAX_BLOCK_SIZE));
2583 return (end >= 0) ? (buf[pos] & 0xFF) : -1;
2616 return (end >= 0) ? (buf[pos++] & 0xFF) : -1;
2641 if ((nread = in.read(buf, 0, nread)) < 0) {
2707 System.arraycopy(buf, pos, b, off, nread);
2711 int nread = in.read(buf, 0, Math.min(len, MAX_BLOCK_SIZE));
2713 System.arraycopy(buf, 0, b, off, nread);
2781 in.readFully(buf, 0, 2);
2785 char v = Bits.getChar(buf, pos);
2793 in.readFully(buf, 0, 2);
2797 short v = Bits.getShort(buf, pos);
2805 in.readFully(buf, 0, 2);
2809 int v = Bits.getShort(buf, pos) & 0xFFFF;
2817 in.readFully(buf, 0, 4);
2821 int v = Bits.getInt(buf, pos);
2829 in.readFully(buf, 0, 4);
2833 float v = Bits.getFloat(buf, pos);
2841 in.readFully(buf, 0, 8);
2845 long v = Bits.getLong(buf, pos);
2853 in.readFully(buf, 0, 8);
2857 double v = Bits.getDouble(buf, pos);
2883 in.readFully(buf, 0, span);
2894 v[off++] = Bits.getBoolean(buf, pos++);
2904 in.readFully(buf, 0, span << 1);
2915 v[off++] = Bits.getChar(buf, pos);
2926 in.readFully(buf, 0, span << 1);
2937 v[off++] = Bits.getShort(buf, pos);
2948 in.readFully(buf, 0, span << 2);
2959 v[off++] = Bits.getInt(buf, pos);
2970 in.readFully(buf, 0, span << 2);
2979 bytesToFloats(buf, pos, v, off, span);
2990 in.readFully(buf, 0, span << 3);
3001 v[off++] = Bits.getLong(buf, pos);
3012 in.readFully(buf, 0, span << 3);
3021 bytesToDoubles(buf, pos, v, off, span);
3058 System.arraycopy(buf, pos, buf, 0, avail);
3062 in.readFully(buf, avail, end - avail);
3089 b1 = buf[pos++] & 0xFF;
3104 b2 = buf[pos++];
3113 b3 = buf[pos + 1];
3114 b2 = buf[pos + 0];