ERT-781 Faster implementation of CSV_EXPORT

This prototype is not in the header.