code: public void write(int b) {
          int newcount = count + 1;
          if (newcount > buffer.length) buffer = copyOf(buffer, Math.max(buffer.length << 1, newcount));
          buffer[count] = (byte) b;
          count = newcount;
      }
docs: <p>write.</p>
  
  @param b a int.