cctools
|
Binary format encode/decode for JX expressions. More...
Go to the source code of this file.
Functions | |
int | jx_binary_write (FILE *stream, struct jx *j) |
Write a JX expression to a file in binary form. More... | |
struct jx * | jx_binary_read (FILE *stream) |
Read a JX expression from a file in binary form. More... | |
Binary format encode/decode for JX expressions.
These routines allow for JX expressions to be read/written from disk in a custom binary format that is more efficient than traditional parsing of ASCII data. It does not conform to an external standard, and so should only be used for efficient internal storage.
int jx_binary_write | ( | FILE * | stream, |
struct jx * | j | ||
) |
Write a JX expression to a file in binary form.
stream | The stdio stream to write to. |
j | The expression to write. |
struct jx* jx_binary_read | ( | FILE * | stream | ) |
Read a JX expression from a file in binary form.
stream | The stdio stream to read from. |