presto-orc/src/main/java/io/prestosql/orc/stream/PresentOutputStream.java/PresentOutputStream/getBufferedBytes
class PresentOutputStream:    public long getBufferedBytes()
    {
        if (booleanOutputStream == null) {
            return 0;
        }
        return booleanOutputStream.getBufferedBytes();
    }