HOG2
Functions
MMapUtil.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint8_t * GetMMAP (const char *filename, uint64_t mapSizeBytes, int &fd, bool zero=false)
 
void CloseMMap (uint8_t *mem, uint64_t mapSizeBytes, int fd)
 

Function Documentation

◆ CloseMMap()

void CloseMMap ( uint8_t *  mem,
uint64_t  mapSizeBytes,
int  fd 
)

Definition at line 85 of file MMapUtil.cpp.

References handle_error.

◆ GetMMAP()

uint8_t* GetMMAP ( const char *  filename,
uint64_t  mapSizeBytes,
int &  fd,
bool  zero = false 
)

Definition at line 28 of file MMapUtil.cpp.

References handle_error, and MAP_ANONYMOUS.