Lines Matching refs:buf
698 * @param buf the data to be written
701 public void write(byte[] buf) throws IOException {
702 bout.write(buf, 0, buf.length, false);
708 * @param buf the data to be written
713 public void write(byte[] buf, int off, int len) throws IOException {
714 if (buf == null) {
718 if (off < 0 || len < 0 || endoff > buf.length || endoff < 0) {
721 bout.write(buf, off, len, false);
1786 private final byte[] buf = new byte[MAX_BLOCK_SIZE];
1794 /** current offset into buf */
1876 buf[pos++] = (byte) b;
1926 System.arraycopy(b, off, buf, pos, wlen);
1946 out.write(buf, 0, pos);
1981 Bits.putBoolean(buf, pos++, v);
1988 buf[pos++] = (byte) v;
1993 Bits.putChar(buf, pos, (char) v);
2002 Bits.putShort(buf, pos, (short) v);
2011 Bits.putInt(buf, pos, v);
2020 Bits.putFloat(buf, pos, v);
2029 Bits.putLong(buf, pos, v);
2038 Bits.putDouble(buf, pos, v);
2061 buf[pos++] = (byte) cbuf[cpos++];
2098 Bits.putBoolean(buf, pos++, v[off++]);
2111 Bits.putChar(buf, pos, v[off++]);
2128 Bits.putShort(buf, pos, v[off++]);
2145 Bits.putInt(buf, pos, v[off++]);
2161 floatsToBytes(v, off, buf, pos, chunklen);
2178 Bits.putLong(buf, pos, v[off++]);
2194 doublesToBytes(v, off, buf, pos, chunklen);
2281 buf[pos++] = (byte) c;
2283 buf[pos + 2] = (byte) (0x80 | ((c >> 0) & 0x3F));
2284 buf[pos + 1] = (byte) (0x80 | ((c >> 6) & 0x3F));
2285 buf[pos + 0] = (byte) (0xE0 | ((c >> 12) & 0x0F));
2288 buf[pos + 1] = (byte) (0x80 | ((c >> 0) & 0x3F));
2289 buf[pos + 0] = (byte) (0xC0 | ((c >> 6) & 0x1F));