Volksdata 1.0b7
RDF library
Loading...
Searching...
No Matches
codec.h File Reference
#include "volksdata/graph.h"
Include dependency graph for codec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  VOLK_TTLParserState
 Parser state. More...
struct  VOLK_Codec
 Codec structure. More...

Macros

#define CHUNK_SIZE   4096
#define CODEC_TBL
#define ENTRY(a, b, c)

Typedefs

typedef VOLK_rc(* term_enc_fn_t) (const VOLK_Term *term, char **rep)
 Term encoder callback type.
typedef void *(* gr_encode_init_fn_t) (const VOLK_Graph *gr)
 Initialize a graph encoding loop.
typedef VOLK_rc(* gr_encode_iter_fn_t) (void *it, char **res)
 Perform one encoding iteration.
typedef void(* gr_encode_done_fn_t) (void *it)
 Finalize an encoding operation.
typedef VOLK_rc(* term_decode_fn_t) (const char *rep, VOLK_Term **term)
 Prototype for decoding a string into a VOLK_Term.
typedef VOLK_rc(* gr_decode_fn_t) (FILE *fh, const char *sh, VOLK_Graph **gr, size_t *ct, char **err)
 Prototype for decoding a complete RDF document file into a graph.

Enumerations

enum  VOLK_CodecType { CODEC_TBL }
 Codec types. All prefixed with VOLK_CODEC_. More...

Functions

uint8_t * uint8_dup (const uint8_t *str)
 Parse error information.
uint8_t * uint8_ndup (const uint8_t *str, size_t size)
 strndup() for unsigned char.
VOLK_rc escape_lit (const char *in, char **out)
 Add escape character (backslash) to illegal literal characters.
char unescape_char (const char c)
 Unescape a single character.
uint8_t * unescape_unicode (const uint8_t *esc_str, size_t size)
 Replace \uxxxx and \Uxxxxxxxx with Unicode bytes.
char * fmt_header (char *pfx)
 Format an informational header.

Macro Definition Documentation

◆ ENTRY

#define ENTRY ( a,
b,
c )
Value:
VOLK_CODEC_##a,

Definition at line 33 of file codec.h.