Lines Matching refs:buf
683 * @param buf the data to be written
686 public void write(byte[] buf) throws IOException {
687 bout.write(buf, 0, buf.length, false);
693 * @param buf the data to be written
698 public void write(byte[] buf, int off, int len) throws IOException {
699 if (buf == null) {
703 if (off < 0 || len < 0 || endoff > buf.length || endoff < 0) {
706 bout.write(buf, off, len, false);
1743 private final byte[] buf = new byte[MAX_BLOCK_SIZE];
1751 /** current offset into buf */
1803 buf[pos++] = (byte) b;
1851 System.arraycopy(b, off, buf, pos, wlen);
1870 out.write(buf, 0, pos);
1903 Bits.putBoolean(buf, pos++, v);
1910 buf[pos++] = (byte) v;
1915 Bits.putChar(buf, pos, (char) v);
1924 Bits.putShort(buf, pos, (short) v);
1933 Bits.putInt(buf, pos, v);
1942 Bits.putFloat(buf, pos, v);
1951 Bits.putLong(buf, pos, v);
1960 Bits.putDouble(buf, pos, v);
1983 buf[pos++] = (byte) cbuf[cpos++];
2020 Bits.putBoolean(buf, pos++, v[off++]);
2033 Bits.putChar(buf, pos, v[off++]);
2050 Bits.putShort(buf, pos, v[off++]);
2067 Bits.putInt(buf, pos, v[off++]);
2083 floatsToBytes(v, off, buf, pos, chunklen);
2100 Bits.putLong(buf, pos, v[off++]);
2116 doublesToBytes(v, off, buf, pos, chunklen);
2203 buf[pos++] = (byte) c;
2205 buf[pos + 2] = (byte) (0x80 | ((c >> 0) & 0x3F));
2206 buf[pos + 1] = (byte) (0x80 | ((c >> 6) & 0x3F));
2207 buf[pos + 0] = (byte) (0xE0 | ((c >> 12) & 0x0F));
2210 buf[pos + 1] = (byte) (0x80 | ((c >> 0) & 0x3F));
2211 buf[pos + 0] = (byte) (0xC0 | ((c >> 6) & 0x1F));