public int initialCapacity() {
        return initialCapacity;
    }
The capacity of the first internal ByteBuffer used by this class. This is useful in cases where a pooled
ByteBuffer was passed via the constructor and it needs to be returned to the pool.
clients/src/main/java/org/apache/kafka/common/utils/ByteBufferOutputStream.java