starfuse
Public Member Functions | Public Attributes | List of all members
starfuse.fs.mapped_file.Region Class Reference
Inheritance diagram for starfuse.fs.mapped_file.Region:
starfuse.fs.mapped_file.MappedFile starfuse.pak.sbbf03.SBBF03 starfuse.pak.btreedb4.BTreeDB4 starfuse.pak.pakfile.KeyStore starfuse.pak.pakfile.Package

Public Member Functions

def __init__ (self, parent, base_offset, size)
 
def __len__ (self)
 
def __str__ (self)
 
def __enter__ (self)
 
def __exit__ (self, tipo, value, traceback)
 
def region (self, offset=-1, size=-1)
 
def read (self, length=-1, offset=-1, advance=True)
 
def write (self, value, length=-1, offset=-1, advance=True)
 

Public Attributes

 parent
 
 base_offset
 
 cursor
 

Detailed Description

A virtual region of mapped memory

This class is a 'faked' mmap() result that allows for the finer allocation of memory mappings
beyond/below what the filesystem really allows. It is backed by true mmap()'d pages and
uses magic methods to achieve the appearance of being an isolated region of memory.

The documentation for this class was generated from the following file: