presto-rcfile/src/main/java/io/prestosql/rcfile/BufferedOutputStreamSliceOutput.java/BufferedOutputStreamSliceOutput/size
class BufferedOutputStreamSliceOutput:    @Override
    public int size()
    {
        return toIntExact(bufferOffset + bufferPosition);
    }