def enc.field
import bend-kit-csv@0.3.0.0/csv.bend as Csvimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
266# Pieces are latest first. A field is quoted only when it holds a quote, comma, CR, or LF.
267def enc.field(f: Bytes.Bytes, acc: List<&1, Bytes.Bytes>) -> List<&1, Bytes.Bytes>:
268 Bytes.Bytes{+len, buf} = f
269 enc.pick(len, needs.go(U32.to_nat(len), Bytes.peek(buf, 0), 0), acc)