CsvResult!(CsvReader!(const(char)[])) — a reader on success, or invalidDialect when called for unsupported modes. Open failures are surfaced as ioFailure.Create a CsvReader over this file's contents.
Behavior:
memoryMapped == true and mode == CsvOpenMode.read, the file is memory-mapped via std.mmfile.MmFile and a zero-copy CsvReader over the mapped bytes is returned.memoryMapped == false and mode == CsvOpenMode.read, the file is read using a large buffered reader (see BufferManager from T04) and a CsvReader over an in-memory buffer is returned. This provides behavior parity with the memory-mapped path while avoiding mapping.Cross-platform notes:
memoryMapped == true. The decision uses ddnCanMemoryMapSize(fileSize), with a conservative cap ddnMaxMmapSize32.CsvResult!(CsvReader!(const(char)[])) — a reader on success, or invalidDialect when called for unsupported modes. Open failures are surfaced as ioFailure.