47int av_file_map(
const char *filename, uint8_t **bufptr,
size_t *size,
48 int log_offset,
void *log_ctx);
70int av_tempfile(
const char *prefix,
char **filename,
int log_offset,
void *log_ctx);
Macro definitions for various function/variable attributes.
#define av_warn_unused_result
void av_file_unmap(uint8_t *bufptr, size_t size)
Unmap or free the buffer bufptr created by av_file_map().
int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_ctx)
Wrapper to work around the lack of mkstemp() on mingw.
av_warn_unused_result int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, int log_offset, void *log_ctx)
Read the file with name filename, and put its content in a newly allocated buffer or map it with mmap...