Codec structure.
An instance of this structure is usually defined at compile time (see examples in "include/codec_*.h" and "src/codec_*.c") and should have the following defined:
- name: A brief (16-char max), human-readable to identify the codec.
- mimetype: MIME type (32-char max) associated with the codec.
- extension: File extension associated with the serialized file.
- encode_term: Encode a single term.
- encode_graph_init: Initialize a graph decoding loop.
- encode_graph_iter: Run one iteration of encoding on one or more triples.
- encode_graph_done: Finalize the encoding loop and free the support data.
- decode_term: Decode a single term.
- decode_graph: Decode a RDF document into a graph.
For documentation on the individual encoding and decoding callbacks, see the related function prototypes.
Definition at line 318 of file codec.h.