Lines Matching +defs:val +defs:buf

672      * @param   val the byte to be written to the stream
675 public void write(int val) throws IOException {
676 bout.write(val);
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);
745 * @param val the boolean to be written
749 public void writeBoolean(boolean val) throws IOException {
750 bout.writeBoolean(val);
756 * @param val the byte value to be written
760 public void writeByte(int val) throws IOException {
761 bout.writeByte(val);
767 * @param val the short value to be written
771 public void writeShort(int val) throws IOException {
772 bout.writeShort(val);
778 * @param val the char value to be written
782 public void writeChar(int val) throws IOException {
783 bout.writeChar(val);
789 * @param val the integer value to be written
793 public void writeInt(int val) throws IOException {
794 bout.writeInt(val);
800 * @param val the long value to be written
804 public void writeLong(long val) throws IOException {
805 bout.writeLong(val);
811 * @param val the float value to be written
815 public void writeFloat(float val) throws IOException {
816 bout.writeFloat(val);
822 * @param val the double value to be written
826 public void writeDouble(double val) throws IOException {
827 bout.writeDouble(val);
881 * @param val the value to assign to the field
887 public abstract void put(String name, boolean val);
893 * @param val the value to assign to the field
899 public abstract void put(String name, byte val);
905 * @param val the value to assign to the field
911 public abstract void put(String name, char val);
917 * @param val the value to assign to the field
923 public abstract void put(String name, short val);
929 * @param val the value to assign to the field
935 public abstract void put(String name, int val);
941 * @param val the value to assign to the field
947 public abstract void put(String name, long val);
953 * @param val the value to assign to the field
959 public abstract void put(String name, float val);
965 * @param val the value to assign to the field
971 public abstract void put(String name, double val);
977 * @param val the value to assign to the field
984 public abstract void put(String name, Object val);
1615 public void put(String name, boolean val) {
1616 Bits.putBoolean(primVals, getFieldOffset(name, Boolean.TYPE), val);
1619 public void put(String name, byte val) {
1620 primVals[getFieldOffset(name, Byte.TYPE)] = val;
1623 public void put(String name, char val) {
1624 Bits.putChar(primVals, getFieldOffset(name, Character.TYPE), val);
1627 public void put(String name, short val) {
1628 Bits.putShort(primVals, getFieldOffset(name, Short.TYPE), val);
1631 public void put(String name, int val) {
1632 Bits.putInt(primVals, getFieldOffset(name, Integer.TYPE), val);
1635 public void put(String name, float val) {
1636 Bits.putFloat(primVals, getFieldOffset(name, Float.TYPE), val);
1639 public void put(String name, long val) {
1640 Bits.putLong(primVals, getFieldOffset(name, Long.TYPE), val);
1643 public void put(String name, double val) {
1644 Bits.putDouble(primVals, getFieldOffset(name, Double.TYPE), val);
1647 public void put(String name, Object val) {
1648 objVals[getFieldOffset(name, Object.class)] = val;
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));