Miasm2
 All Classes Namespaces Files Functions Variables Typedefs Properties Macros
Public Member Functions | Public Attributes | List of all members
miasm2.core.asmbloc.BlockChainWedge Class Reference
+ Inheritance diagram for miasm2.core.asmbloc.BlockChainWedge:
+ Collaboration diagram for miasm2.core.asmbloc.BlockChainWedge:

Public Member Functions

def __init__
 
def merge
 

Public Attributes

 symbol_pool
 
 offset
 
 max_size
 
 offset_min
 
 offset_max
 

Detailed Description

Stand for wedges between blocks

Definition at line 784 of file asmbloc.py.

Constructor & Destructor Documentation

def miasm2.core.asmbloc.BlockChainWedge.__init__ (   self,
  symbol_pool,
  offset,
  size 
)

Definition at line 788 of file asmbloc.py.

789  def __init__(self, symbol_pool, offset, size):
790  self.symbol_pool = symbol_pool
791  self.offset = offset
792  self.max_size = size
793  self.offset_min = offset
794  self.offset_max = offset + size

Member Function Documentation

def miasm2.core.asmbloc.BlockChainWedge.merge (   self,
  chain 
)
Best effort merge two block chains
Return the list of resulting blockchains

Definition at line 795 of file asmbloc.py.

796  def merge(self, chain):
797  """Best effort merge two block chains
798  Return the list of resulting blockchains"""
799  self.symbol_pool.set_offset(chain.blocks[0].label, self.offset_max)
800  chain.place()
801  return [self, chain]
802 

Member Data Documentation

miasm2.core.asmbloc.BlockChainWedge.max_size

Definition at line 791 of file asmbloc.py.

miasm2.core.asmbloc.BlockChainWedge.offset

Definition at line 790 of file asmbloc.py.

miasm2.core.asmbloc.BlockChainWedge.offset_max

Definition at line 793 of file asmbloc.py.

miasm2.core.asmbloc.BlockChainWedge.offset_min

Definition at line 792 of file asmbloc.py.

miasm2.core.asmbloc.BlockChainWedge.symbol_pool

Definition at line 789 of file asmbloc.py.


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