presto-orc/src/main/java/io/prestosql/orc/stream/ByteArrayOutputStream.java/ByteArrayOutputStream/getBufferedBytes
class ByteArrayOutputStream:    @Override
    public long getBufferedBytes()
    {
        return buffer.estimateOutputDataSize();
    }