OpenQuizz
Une application de gestion des contenus pédagogiques
smmap.util Namespace Reference

Data Structures

class  MapRegion
 
class  MapRegionList
 
class  MapWindow
 

Functions

def align_to_mmap (num, round_up)
 
def is_64_bit ()
 

Detailed Description

Module containing a memory memory manager which provides a sliding window on a number of memory mapped files

Function Documentation

◆ align_to_mmap()

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

◆ is_64_bit()

def smmap.util.is_64_bit ( )
:return: True if the system is 64 bit. Otherwise it can be assumed to be 32 bit