CsvReader.retainOwner

void retainOwner(Object owner) @safe pure nothrow @nogc

Retain an object that owns the backing buffer.

The reader keeps a strong reference to owner so buffers with non-trivial lifetimes (memory mappings) stay valid for as long as the reader is reachable, independent of the CsvFile that produced them.

Parameters

ownerOwning object (e.g. the MmFile behind a mapped reader).