Function in stdx_io.h

x_io_read

Read up to `size` bytes into buffer. Returns bytes read.

X_IO_API size_t x_io_read(
 XFile *file,
 void *buffer,
 size_t size
);
Function in stdx_io.h

x_io_read_all

Read the entire file into a buffer. Returns buffer (null-terminated, but not for text safety). Caller must free.

X_IO_API char * x_io_read_all(
 XFile *file,
 size_t *out_size
);
Function in stdx_io.h

x_io_write

Write `size` bytes to file. Returns number of bytes written.

X_IO_API size_t x_io_write(
 XFile *file,
 const void *data,
 size_t size
);