Blender
V3.3
|
Go to the source code of this file.
Typedefs | |
typedef struct BLI_mmap_file | BLI_mmap_file |
Functions | |
BLI_mmap_file * | BLI_mmap_open (int fd) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT |
bool | BLI_mmap_read (BLI_mmap_file *file, void *dest, size_t offset, size_t length) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
void * | BLI_mmap_get_pointer (BLI_mmap_file *file) ATTR_WARN_UNUSED_RESULT |
void | BLI_mmap_free (BLI_mmap_file *file) ATTR_NONNULL(1) |
typedef struct BLI_mmap_file BLI_mmap_file |
Definition at line 1 of file BLI_mmap.h.
void BLI_mmap_free | ( | BLI_mmap_file * | file | ) |
Definition at line 210 of file BLI_mmap.c.
References file, MEM_freeN, and sigbus_handler_remove().
Referenced by IMB_loadifffile(), imb_loadtilefile(), memory_close_mmap(), and IMMapStream::~IMMapStream().
void* BLI_mmap_get_pointer | ( | BLI_mmap_file * | file | ) |
Definition at line 205 of file BLI_mmap.c.
References file.
Referenced by IMB_loadifffile(), imb_loadtilefile(), and IMMapStream::IMMapStream().
BLI_mmap_file* BLI_mmap_open | ( | int | fd | ) |
Definition at line 131 of file BLI_mmap.c.
References BLI_lseek(), file, blender::math::length(), MEM_callocN, NULL, sigbus_handler_add(), and sigbus_handler_setup().
Referenced by BLI_filereader_new_mmap(), IMB_loadifffile(), imb_loadtilefile(), and IMMapStream::IMMapStream().
bool BLI_mmap_read | ( | BLI_mmap_file * | file, |
void * | dest, | ||
size_t | offset, | ||
size_t | length | ||
) |
Definition at line 178 of file BLI_mmap.c.
References dest, file, blender::math::length(), and offset.
Referenced by memory_read_mmap().