struct tapi_file_chunk_spec
Overview
A description of a chunk for tapi_file_create_by_spec_ta(). More…
#include <tapi_file.h> struct tapi_file_chunk_spec { // fields tapi_file_chunk_spec_kind kind; size_t minlen; size_t maxlen; const char* spec; const struct tapi_file_chunk_spec* nested; union tapi_file_chunk_spec::@54 u; };
Detailed Documentation
A description of a chunk for tapi_file_create_by_spec_ta().
When a list of tapi_file_chunk_spec is passed to tapi_file_create_by_spec_ta(), the last item must have kind set to TAPI_FILE_CHUNK_SPEC_KIND_END.
Fields
tapi_file_chunk_spec_kind kind
The kind of the chunk.
size_t minlen
Minimum length of a generated chunk.
size_t maxlen
Maximum length of a generated chunk.
const char* spec
The chunk specification, either a literal string or a pattern as in te_compile_buf_pattern().
const struct tapi_file_chunk_spec* nested
The list of sub-chunks, must be terminated by TAPI_FILE_CHUNK_SPEC_KIND_END.