@Override
    public void write(int b) {
        int newcount = ensureCapacity(1);
        buf[count] = (byte) b;
        count = newcount;
    }
Writes the specified byte to this byte array output stream.

@param b the byte to be written.
clickhouse-data/src/main/java/com/clickhouse/data/format/tsv/FastByteArrayOutputStream.java