apfl/src/encode.h
Laria Carolin Chabowski 0361000e7c apflc: Use an apfl_ctx for compilation
We'll soon need the full apfl_ctx, where we previously only needed the
gc. apflc was the only place manually constructing a struct gc without
an apfl_ctx, so lets change that.
2023-11-23 21:03:40 +01:00

23 lines
423 B
C

#ifndef APFL_ENCODE_H
#define APFL_ENCODE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include <stdint.h>
#include "apfl.h"
bool apfl_encode_u64(struct apfl_io_writer, uint_least64_t );
bool apfl_decode_u64(struct apfl_io_reader, uint_least64_t *);
bool apfl_encode_double(struct apfl_io_writer, double);
bool apfl_decode_double(struct apfl_io_reader, double *);
#ifdef __cplusplus
}
#endif
#endif