presto-rcfile/src/main/java/io/prestosql/rcfile/ChunkedSliceOutput.java/ChunkedSliceOutput/reset
class ChunkedSliceOutput:    @Override
    public void reset()
    {
        chunkSupplier.reset();
        closedSlices.clear();

        buffer = chunkSupplier.get();
        slice = Slices.wrappedBuffer(buffer);

        closedSlicesRetainedSize = 0;
        streamOffset = 0;
        bufferPosition = 0;
    }