17 #ifndef AVRO_ENCODING_H
18 #define AVRO_ENCODING_H
41 const char *bytes,
const int64_t len);
75 #define AVRO_WRITE(writer, buf, len) \
76 { int rval = avro_write( writer, buf, len ); if(rval) return rval; }
77 #define AVRO_READ(reader, buf, len) \
78 { int rval = avro_read( reader, buf, len ); if(rval) return rval; }
const char * description
Definition: encoding.h:30
int(* read_bytes)(avro_reader_t reader, char **bytes, int64_t *len)
Definition: encoding.h:39
int(* write_int)(avro_writer_t writer, const int32_t i)
Definition: encoding.h:46
int(* write_double)(avro_writer_t writer, const double d)
Definition: encoding.h:61
int(* read_int)(avro_reader_t reader, int32_t *i)
Definition: encoding.h:45
int(* read_long)(avro_reader_t reader, int64_t *l)
Definition: encoding.h:50
int(* write_string)(avro_writer_t writer, const char *s)
Definition: encoding.h:35
Definition: encoding.h:29
int(* read_double)(avro_reader_t reader, double *d)
Definition: encoding.h:60
int(* write_null)(avro_writer_t writer)
Definition: encoding.h:71
const avro_encoding_t avro_binary_encoding
int(* read_boolean)(avro_reader_t reader, int8_t *b)
Definition: encoding.h:65
int(* write_bytes)(avro_writer_t writer, const char *bytes, const int64_t len)
Definition: encoding.h:40
int(* read_null)(avro_reader_t reader)
Definition: encoding.h:70
int(* write_float)(avro_writer_t writer, const float f)
Definition: encoding.h:56
int(* write_boolean)(avro_writer_t writer, const int8_t b)
Definition: encoding.h:66
int(* read_float)(avro_reader_t reader, float *f)
Definition: encoding.h:55
int(* write_long)(avro_writer_t writer, const int64_t l)
Definition: encoding.h:51
int(* read_string)(avro_reader_t reader, char **s, int64_t *len)
Definition: encoding.h:34