OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
class | MapRegion |
class | MapRegionList |
class | MapWindow |
Functions | |
def | align_to_mmap (num, round_up) |
def | is_64_bit () |
Module containing a memory memory manager which provides a sliding window on a number of memory mapped files
def smmap.util.align_to_mmap | ( | num, | |
round_up | |||
) |
Align the given integer number to the closest page offset, which usually is 4096 bytes. :param round_up: if True, the next higher multiple of page size is used, otherwise the lower page_size will be used (i.e. if True, 1 becomes 4096, otherwise it becomes 0) :return: num rounded to closest page
def smmap.util.is_64_bit | ( | ) |
:return: True if the system is 64 bit. Otherwise it can be assumed to be 32 bit