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