Lines Matching refs:off

848      * @param   off the start offset of the data
855 public int read(byte[] buf, int off, int len) throws IOException {
859 int endoff = off + len;
860 if (off < 0 || len < 0 || endoff > buf.length || endoff < 0) {
863 return bin.read(buf, off, len, false);
1020 * @param off the start offset of the data
1025 public void readFully(byte[] buf, int off, int len) throws IOException {
1026 int endoff = off + len;
1027 if (off < 0 || len < 0 || endoff > buf.length || endoff < 0) {
1030 bin.readFully(buf, off, len, false);
2091 int off = getFieldOffset(name, Boolean.TYPE);
2092 return (off >= 0) ? Bits.getBoolean(primVals, off) : val;
2096 int off = getFieldOffset(name, Byte.TYPE);
2097 return (off >= 0) ? primVals[off] : val;
2101 int off = getFieldOffset(name, Character.TYPE);
2102 return (off >= 0) ? Bits.getChar(primVals, off) : val;
2106 int off = getFieldOffset(name, Short.TYPE);
2107 return (off >= 0) ? Bits.getShort(primVals, off) : val;
2111 int off = getFieldOffset(name, Integer.TYPE);
2112 return (off >= 0) ? Bits.getInt(primVals, off) : val;
2116 int off = getFieldOffset(name, Float.TYPE);
2117 return (off >= 0) ? Bits.getFloat(primVals, off) : val;
2121 int off = getFieldOffset(name, Long.TYPE);
2122 return (off >= 0) ? Bits.getLong(primVals, off) : val;
2126 int off = getFieldOffset(name, Double.TYPE);
2127 return (off >= 0) ? Bits.getDouble(primVals, off) : val;
2131 int off = getFieldOffset(name, Object.class);
2132 if (off >= 0) {
2133 int objHandle = objHandles[off];
2136 objVals[off] : null;
2305 public int read(byte[] b, int off, int len) throws IOException {
2309 return in.read(b, off, len);
2311 b[off++] = (byte) peekb;
2314 int n = in.read(b, off, len);
2319 void readFully(byte[] b, int off, int len) throws IOException {
2322 int count = read(b, off + n, len - n);
2397 * Block data mode is turned off by default.
2405 * Sets block data mode to the given mode (true == on, false == off)
2408 * block data mode is being switched from on to off while unconsumed
2622 public int read(byte[] b, int off, int len) throws IOException {
2623 return read(b, off, len, false);
2690 * Attempts to read len bytes into byte array b at offset off. Returns
2696 int read(byte[] b, int off, int len, boolean copy) throws IOException {
2707 System.arraycopy(buf, pos, b, off, nread);
2713 System.arraycopy(buf, 0, b, off, nread);
2717 return in.read(b, off, len);
2733 public void readFully(byte[] b, int off, int len) throws IOException {
2734 readFully(b, off, len, false);
2737 public void readFully(byte[] b, int off, int len, boolean copy)
2741 int n = read(b, off, len, copy);
2745 off += n;
2878 void readBooleans(boolean[] v, int off, int len) throws IOException {
2879 int stop, endoff = off + len;
2880 while (off < endoff) {
2882 int span = Math.min(endoff - off, MAX_BLOCK_SIZE);
2884 stop = off + span;
2887 v[off++] = din.readBoolean();
2890 stop = Math.min(endoff, off + end - pos);
2893 while (off < stop) {
2894 v[off++] = Bits.getBoolean(buf, pos++);
2899 void readChars(char[] v, int off, int len) throws IOException {
2900 int stop, endoff = off + len;
2901 while (off < endoff) {
2903 int span = Math.min(endoff - off, MAX_BLOCK_SIZE >> 1);
2905 stop = off + span;
2908 v[off++] = din.readChar();
2911 stop = Math.min(endoff, off + ((end - pos) >> 1));
2914 while (off < stop) {
2915 v[off++] = Bits.getChar(buf, pos);
2921 void readShorts(short[] v, int off, int len) throws IOException {
2922 int stop, endoff = off + len;
2923 while (off < endoff) {
2925 int span = Math.min(endoff - off, MAX_BLOCK_SIZE >> 1);
2927 stop = off + span;
2930 v[off++] = din.readShort();
2933 stop = Math.min(endoff, off + ((end - pos) >> 1));
2936 while (off < stop) {
2937 v[off++] = Bits.getShort(buf, pos);
2943 void readInts(int[] v, int off, int len) throws IOException {
2944 int stop, endoff = off + len;
2945 while (off < endoff) {
2947 int span = Math.min(endoff - off, MAX_BLOCK_SIZE >> 2);
2949 stop = off + span;
2952 v[off++] = din.readInt();
2955 stop = Math.min(endoff, off + ((end - pos) >> 2));
2958 while (off < stop) {
2959 v[off++] = Bits.getInt(buf, pos);
2965 void readFloats(float[] v, int off, int len) throws IOException {
2966 int span, endoff = off + len;
2967 while (off < endoff) {
2969 span = Math.min(endoff - off, MAX_BLOCK_SIZE >> 2);
2973 v[off++] = din.readFloat();
2976 span = Math.min(endoff - off, ((end - pos) >> 2));
2979 bytesToFloats(buf, pos, v, off, span);
2980 off += span;
2985 void readLongs(long[] v, int off, int len) throws IOException {
2986 int stop, endoff = off + len;
2987 while (off < endoff) {
2989 int span = Math.min(endoff - off, MAX_BLOCK_SIZE >> 3);
2991 stop = off + span;
2994 v[off++] = din.readLong();
2997 stop = Math.min(endoff, off + ((end - pos) >> 3));
3000 while (off < stop) {
3001 v[off++] = Bits.getLong(buf, pos);
3007 void readDoubles(double[] v, int off, int len) throws IOException {
3008 int span, endoff = off + len;
3009 while (off < endoff) {
3011 span = Math.min(endoff - off, MAX_BLOCK_SIZE >> 3);
3015 v[off++] = din.readDouble();
3018 span = Math.min(endoff - off, ((end - pos) >> 3));
3021 bytesToDoubles(buf, pos, v, off, span);
3022 off += span;