66 return reinterpret_cast<FileReader *
>(rawfile);
File and directory operations.
Wrapper for reading from various sources (e.g. raw files, compressed files, memory....
Compatibility-like things for windows.
Read Blender memory allocation and freeing.
int64_t BLI_read(int fd, void *buf, size_t nbytes)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
static bool file_read(FileReader *file, uint8_t *buf, size_t buf_len)
static void file_close(FileReader *reader)
static bool file_seek(FileReader *file, size_t len)
int64_t BLI_lseek(int fd, int64_t offset, int whence)
FileReader * BLI_filereader_new_file(int filedes) ATTR_WARN_UNUSED_RESULT