Lines Matching refs:off

694      * @param   off the start offset in the data
698 public void write(byte[] buf, int off, int len) throws IOException {
702 int endoff = off + len;
703 if (off < 0 || len < 0 || endoff > buf.length || endoff < 0) {
706 bout.write(buf, off, len, false);
1761 * Block data mode is turned off by default.
1769 * Sets block data mode to the given mode (true == on, false == off)
1810 public void write(byte[] b, int off, int len) throws IOException {
1811 write(b, off, len, false);
1830 void write(byte[] b, int off, int len, boolean copy)
1835 out.write(b, off, len);
1846 out.write(b, off, MAX_BLOCK_SIZE);
1847 off += MAX_BLOCK_SIZE;
1851 System.arraycopy(b, off, buf, pos, wlen);
1853 off += wlen;
1971 for (int off = 0; off < endoff; ) {
1974 csize = Math.min(endoff - off, CHAR_BUF_SIZE);
1975 s.getChars(off, off + csize, cbuf, 0);
1985 off += n;
1991 for (int off = 0; off < endoff; ) {
1992 int csize = Math.min(endoff - off, CHAR_BUF_SIZE);
1993 s.getChars(off, off + csize, cbuf, 0);
1995 off += csize;
2012 void writeBooleans(boolean[] v, int off, int len) throws IOException {
2013 int endoff = off + len;
2014 while (off < endoff) {
2018 int stop = Math.min(endoff, off + (MAX_BLOCK_SIZE - pos));
2019 while (off < stop) {
2020 Bits.putBoolean(buf, pos++, v[off++]);
2025 void writeChars(char[] v, int off, int len) throws IOException {
2027 int endoff = off + len;
2028 while (off < endoff) {
2031 int stop = Math.min(endoff, off + avail);
2032 while (off < stop) {
2033 Bits.putChar(buf, pos, v[off++]);
2037 dout.writeChar(v[off++]);
2042 void writeShorts(short[] v, int off, int len) throws IOException {
2044 int endoff = off + len;
2045 while (off < endoff) {
2048 int stop = Math.min(endoff, off + avail);
2049 while (off < stop) {
2050 Bits.putShort(buf, pos, v[off++]);
2054 dout.writeShort(v[off++]);
2059 void writeInts(int[] v, int off, int len) throws IOException {
2061 int endoff = off + len;
2062 while (off < endoff) {
2065 int stop = Math.min(endoff, off + avail);
2066 while (off < stop) {
2067 Bits.putInt(buf, pos, v[off++]);
2071 dout.writeInt(v[off++]);
2076 void writeFloats(float[] v, int off, int len) throws IOException {
2078 int endoff = off + len;
2079 while (off < endoff) {
2082 int chunklen = Math.min(endoff - off, avail);
2083 floatsToBytes(v, off, buf, pos, chunklen);
2084 off += chunklen;
2087 dout.writeFloat(v[off++]);
2092 void writeLongs(long[] v, int off, int len) throws IOException {
2094 int endoff = off + len;
2095 while (off < endoff) {
2098 int stop = Math.min(endoff, off + avail);
2099 while (off < stop) {
2100 Bits.putLong(buf, pos, v[off++]);
2104 dout.writeLong(v[off++]);
2109 void writeDoubles(double[] v, int off, int len) throws IOException {
2111 int endoff = off + len;
2112 while (off < endoff) {
2115 int chunklen = Math.min(endoff - off, avail);
2116 doublesToBytes(v, off, buf, pos, chunklen);
2117 off += chunklen;
2120 dout.writeDouble(v[off++]);
2131 for (int off = 0; off < len; ) {
2132 int csize = Math.min(len - off, CHAR_BUF_SIZE);
2133 s.getChars(off, off + csize, cbuf, 0);
2144 off += csize;
2196 for (int off = 0; off < len; ) {
2197 int csize = Math.min(len - off, CHAR_BUF_SIZE);
2198 s.getChars(off, off + csize, cbuf, 0);
2227 off += csize;