_ti_flatten
len = _ti_flatten(&f, tic);
ssize_t _ti_flatten(uint8_t **, const TIC *);
len = _ti_flatten(&buf, term->tic);