38 #ifndef __GENEPI_IO_H__
39 # define __GENEPI_IO_H__
42 # include <genepi/genepi-common.h>
int genepi_io_write_int32(FILE *out, int32_t i, int *perr)
Write a 32-bit signed integer on the out stream.
int genepi_io_read_uint16(FILE *in, uint16_t *pi, int *perr)
Read a 16-bit unsigned integer on the in stream. The signedness of the integer is not checked...
int genepi_io_write_uint16(FILE *out, uint16_t i, int *perr)
Write a 16-bit unsigned integer on the out stream.
int genepi_io_read_int32(FILE *in, int32_t *pi, int *perr)
Read a 32-bit signed integer on the in stream. The signedness of the integer is not checked...
int genepi_io_write_buffer(FILE *out, const void *buf, size_t size, int *perr)
Write the content of the buffer buf on the out stream. Oppositely to strings the given buffer must no...
int genepi_io_read_uint32(FILE *in, uint32_t *pi, int *perr)
Read a 32-bit unsigned integer on the in stream. The signedness of the integer is not checked...
int genepi_io_write_int16(FILE *out, int16_t i, int *perr)
Write a 16-bit signed integer on the out stream.
int genepi_io_write_uint8(FILE *out, uint8_t i, int *perr)
Write an 8-bit unsigned integer on the out stream.
int genepi_io_read_int8(FILE *in, int8_t *pi, int *perr)
Read an 8-bit signed integer on the in stream. The signedness of the integer is not checked...
int genepi_io_read_string(FILE *in, char **ps, int *perr)
Read a string on the in stream. The readed string might be NULL.
int genepi_io_write_string(FILE *out, const char *s, int *perr)
Write a string on the out stream. The string s can be null in which case the NULL value will be reloa...
int genepi_io_read_buffer(FILE *in, void *buf, size_t size, int *perr)
Read size bytes the in stream.
int genepi_io_write_int8(FILE *out, int8_t i, int *perr)
Write an 8-bit signed integer on the out stream.
int genepi_io_write_uint32(FILE *out, uint32_t i, int *perr)
Write a 32-bit unsigned integer on the out stream.
int genepi_io_read_uint8(FILE *in, uint8_t *pi, int *perr)
Read an 8-bit unsigned integer on the in stream. The signedness of the integer is not checked...
int genepi_io_read_int16(FILE *in, int16_t *pi, int *perr)
Read a 16-bit signed integer on the in stream. The signedness of the integer is not checked...