code: public ByteBuffer append_i(int b) {
          int newcount = count + 1;
          if (newcount > buf.length) {
              byte newbuf[] = new byte[Math.max(buf.length << 1, newcount)];
              System.arraycopy(buf, 0, newbuf, 0, count);
              buf = newbuf;
          }
          buf[count] = (byte)b;
          count = newcount;
          return this;
      }
docs: Appends an <CODE>int</CODE>. The size of the array will grow by one.
  @param b the int to be appended
  @return a reference to this <CODE>ByteBuffer</CODE> object