Package winappdbg :: Module system :: Class MemoryAddresses
[hide private]
[frames] | no frames]

Class MemoryAddresses

source code


Class to manipulate memory addresses.

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
tuple( int, int )
align_address_range(cls, begin, end)
Align the given address range to the start and end of the page(s) it occupies.
source code
int
get_buffer_size_in_pages(cls, address, size)
Get the number of pages in use by the given buffer.
source code
Static Methods [hide private]
int
align_address_to_page_start(address)
Align the given address to the start of the page it occupies.
source code
int
align_address_to_page_end(address)
Align the given address to the end of the page it occupies.
source code
 
do_ranges_intersect(begin, end, old_begin, old_end) source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

align_address_to_page_start(address)
Static Method

source code 

Align the given address to the start of the page it occupies.

Parameters:
  • address (int) - Memory address.
Returns: int
Aligned memory address.

align_address_to_page_end(address)
Static Method

source code 

Align the given address to the end of the page it occupies.

Parameters:
  • address (int) - Memory address.
Returns: int
Aligned memory address.

align_address_range(cls, begin, end)
Class Method

source code 

Align the given address range to the start and end of the page(s) it occupies.

Parameters:
  • begin (int) - Memory address of the beginning of the buffer.
  • end (int) - Memory address of the end of the buffer.
Returns: tuple( int, int )
Aligned memory addresses.

get_buffer_size_in_pages(cls, address, size)
Class Method

source code 

Get the number of pages in use by the given buffer.

Parameters:
  • address (int) - Aligned memory address.
  • size (int) - Buffer size.
Returns: int
Buffer size in number of pages.