19 FILE *
file_open(
const char *open_type,
const char *fmt, ...);
31 if(
unlikely(fwrite(data, data_size, 1, f) != 1 && data_size))
@ LOG_ERROR
The logging level reserved to unexpected, problematic conditions.
Definition: ROOT-Sim.h:112
Core ROOT-Sim functionalities.
#define unlikely(exp)
Optimize the branch as likely not taken.
Definition: core.h:51
FILE * file_open(const char *open_type, const char *fmt,...)
A version of fopen() which accepts a printf style format string.
Definition: file.c:45
static void file_write_chunk(FILE *f, const void *data, size_t data_size)
Write the content of a memory buffer in a file.
Definition: file.h:29
void * file_memory_load(FILE *f, int64_t *f_size_p)
Load a whole file content in a mm_alloc-ed memory buffer.
Definition: file.c:24
#define logger(level,...)
Produce a log message.
Definition: log.h:22