13#ifndef FC__DATAIO_RAW_H
14#define FC__DATAIO_RAW_H
86#ifdef FREECIV_JSON_CONNECTION
91typedef char *(*DIO_PUT_CONV_FUN) (
const char *src,
size_t *length);
95 const char *src,
size_t nsrc);
162#define dio_get_estring_raw dio_get_string_raw
163#define dio_put_estring_raw dio_put_string_raw
165#ifndef FREECIV_JSON_CONNECTION
168#define DIO_BV_GET(pdin, location, bv) \
169 dio_get_memory_raw((pdin), (bv).vec, sizeof((bv).vec))
171#define DIO_GET(f, d, l, ...) dio_get_##f##_raw(d, ## __VA_ARGS__)
205#ifndef FREECIV_JSON_CONNECTION
208#define DIO_BV_PUT(pdout, location, bv) \
209 dio_put_memory_raw((pdout), (bv).vec, sizeof((bv).vec))
211#define DIO_PUT(f, d, l, ...) dio_put_##f##_raw(d, ## __VA_ARGS__)
int dio_put_uint8_vec8_raw(struct raw_data_out *dout, int *values, int stop_value)
int dio_put_cm_parameter_raw(struct raw_data_out *dout, const struct cm_parameter *param)
char *(* DIO_PUT_CONV_FUN)(const char *src, size_t *length)
int dio_put_type_raw(struct raw_data_out *dout, enum data_type type, int value)
int dio_put_action_probability_raw(struct raw_data_out *dout, const struct act_prob *aprob)
int dio_put_uint8_raw(struct raw_data_out *dout, int value)
bool dio_get_action_probability_raw(struct data_in *din, struct act_prob *aprob) fc__attribute((nonnull(2)))
void dio_input_init(struct data_in *dout, const void *src, size_t src_size)
struct plocation * plocation_field_new(char *name)
int dio_put_uint32_raw(struct raw_data_out *dout, int value)
void dio_output_init(struct raw_data_out *dout, void *destination, size_t dest_size)
bool dio_get_uint8_raw(struct data_in *din, int *dest) fc__attribute((nonnull(2)))
void dio_set_get_conv_callback(DIO_GET_CONV_FUN fun)
bool dataio_get_conv_callback(char *dst, size_t ndst, const char *src, size_t nsrc)
bool dio_get_type_raw(struct data_in *din, enum data_type type, int *dest) fc__attribute((nonnull(3)))
bool dio_get_string_raw(struct data_in *din, char *dest, size_t max_dest_size) fc__attribute((nonnull(2)))
size_t dio_input_remaining(struct data_in *din)
bool(* DIO_GET_CONV_FUN)(char *dst, size_t ndst, const char *src, size_t nsrc)
bool dio_get_memory_raw(struct data_in *din, void *dest, size_t dest_size) fc__attribute((nonnull(2)))
int dio_put_string_raw(struct raw_data_out *dout, const char *value)
bool dio_get_worklist_raw(struct data_in *din, struct worklist *pwl) fc__attribute((nonnull(2)))
bool dio_get_uint8_vec8_raw(struct data_in *din, int **values, int stop_value) fc__attribute((nonnull(2)))
bool dio_get_ufloat_raw(struct data_in *din, float *dest, int float_factor) fc__attribute((nonnull(2)))
bool dio_get_bool8_raw(struct data_in *din, bool *dest) fc__attribute((nonnull(2)))
bool dio_get_uint32_raw(struct data_in *din, int *dest) fc__attribute((nonnull(2)))
int dio_put_bool8_raw(struct raw_data_out *dout, bool value)
int dio_put_sint8_raw(struct raw_data_out *dout, int value)
void dio_input_rewind(struct data_in *din)
int dio_put_requirement_raw(struct raw_data_out *dout, const struct requirement *preq)
bool dio_get_bool32_raw(struct data_in *din, bool *dest) fc__attribute((nonnull(2)))
bool dio_get_sfloat_raw(struct data_in *din, float *dest, int float_factor) fc__attribute((nonnull(2)))
bool dio_get_requirement_raw(struct data_in *din, struct requirement *preq) fc__attribute((nonnull(2)))
int dio_put_sint32_raw(struct raw_data_out *dout, int value)
bool dio_get_cm_parameter_raw(struct data_in *din, struct cm_parameter *param) fc__attribute((nonnull(2)))
int dio_put_memory_raw(struct raw_data_out *dout, const void *value, size_t size)
bool dio_get_sint32_raw(struct data_in *din, int *dest) fc__attribute((nonnull(2)))
int dio_put_bool32_raw(struct raw_data_out *dout, bool value)
bool dio_get_uint16_raw(struct data_in *din, int *dest) fc__attribute((nonnull(2)))
int dio_put_uint16_raw(struct raw_data_out *dout, int value)
bool dio_input_skip(struct data_in *din, size_t size)
size_t data_type_size(enum data_type type)
struct plocation * plocation_elem_new(int number)
int dio_put_unit_order_raw(struct raw_data_out *dout, const struct unit_order *order)
int dio_put_ufloat_raw(struct raw_data_out *dout, float value, int float_factor)
size_t dio_output_used(struct raw_data_out *dout)
bool dio_get_sint8_raw(struct data_in *din, int *dest) fc__attribute((nonnull(2)))
int dio_put_uint16_vec8_raw(struct raw_data_out *dout, int *values, int stop_value)
bool dio_get_unit_order_raw(struct data_in *din, struct unit_order *order) fc__attribute((nonnull(2)))
int dio_put_sfloat_raw(struct raw_data_out *dout, float value, int float_factor)
void dio_set_put_conv_callback(DIO_PUT_CONV_FUN fun)
int dio_put_sint16_raw(struct raw_data_out *dout, int value)
const char * plocation_name(const struct plocation *loc)
void dio_output_rewind(struct raw_data_out *dout)
bool dio_get_uint16_vec8_raw(struct data_in *din, int **values, int stop_value) fc__attribute((nonnull(2)))
bool dio_get_sint16_raw(struct data_in *din, int *dest) fc__attribute((nonnull(2)))
int dio_put_worklist_raw(struct raw_data_out *dout, const struct worklist *pwl)
struct plocation * sub_location