encoder library

CSV encoding — batch and streaming.

Two encoder implementations are provided:

  • FastEncoder — high-performance batch encoder. Used internally by CsvCodec for encode(), encodeStrings(), encodeGeneric(), and encodeMap().
  • CsvEncoder — streaming encoder extending StreamTransformerBase. Supports convert(), bind(), and startChunkedConversion() for dart:convert pipeline compatibility.

Classes

CsvEncoder
Streaming CSV encoder that transforms rows to CSV string chunks.
FastEncoder
High-performance batch CSV encoder using per-call StringBuffer.