public static void ProcessStream(Stream csvStream, CsvReaderVisitorBase visitor, int bufferSize) { CsvSyncInput.ForStream(csvStream) .WithMinReadBufferByteCount(bufferSize) .WithReadBufferPool(null) .WithIgnoreUTF8ByteOrderMark(false) .Process(visitor); }
public static void ProcessFile(string csvFilePath, CsvReaderVisitorBase visitor) { CsvSyncInput.ForMemoryMappedFile(csvFilePath) .WithIgnoreUTF8ByteOrderMark(false) .Process(visitor); }