Blender  V2.93
Typedefs | Functions
BLI_mmap.h File Reference
#include "BLI_compiler_attrs.h"
#include "BLI_utildefines.h"

Go to the source code of this file.

Typedefs

typedef struct BLI_mmap_file BLI_mmap_file
 

Functions

BLI_mmap_fileBLI_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 Documentation

◆ BLI_mmap_file

typedef struct BLI_mmap_file BLI_mmap_file

Definition at line 1 of file BLI_mmap.h.

Function Documentation

◆ BLI_mmap_free()

void BLI_mmap_free ( BLI_mmap_file file)

Definition at line 226 of file BLI_mmap.c.

References file, MEM_freeN, and sigbus_handler_remove().

Referenced by blo_filedata_free(), IMB_loadifffile(), and imb_loadtilefile().

◆ BLI_mmap_get_pointer()

void* BLI_mmap_get_pointer ( BLI_mmap_file file)

Definition at line 221 of file BLI_mmap.c.

References file.

Referenced by IMB_loadifffile(), and imb_loadtilefile().

◆ BLI_mmap_open()

BLI_mmap_file* BLI_mmap_open ( int  fd)

◆ BLI_mmap_read()

bool BLI_mmap_read ( BLI_mmap_file file,
void *  dest,
size_t  offset,
size_t  length 
)

Definition at line 194 of file BLI_mmap.c.

References file, and length().

Referenced by fd_read_from_mmap().