Package envi :: Module memory
[hide private]
[frames] | no frames]

Module memory

source code

Classes [hide private]
  IMemory
This is the interface spec (and a few helper utils) for the unified memory object interface.
  MemoryCache
An object which acts like "copy on write" cache for another memory object.
  MemoryObject
  MemoryFile
A file like object to wrap around a memory object.
Functions [hide private]
 
getPermName(perm)
Return the human readable name for a *single* memory perm enumeration value.
source code
 
reprPerms(mask) source code
 
parsePerms(pstr) source code
 
memdiff(bytes1, bytes2)
Return a list of (offset, size) tuples showing any memory differences between the given bytes.
source code
Variables [hide private]
  MM_NONE = 0x0
  MM_READ = 0x4
  MM_WRITE = 0x2
  MM_EXEC = 0x1
  MM_SHARED = 0x08
  MM_READ_WRITE = MM_READ | MM_WRITE
  MM_READ_EXEC = MM_READ | MM_EXEC
  MM_RWX = MM_READ | MM_WRITE | MM_EXEC
  pnames = ['No Access', 'Execute', 'Write', None, 'Read']