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

Public Member Functions

def __init__
 
def __str__
 
def __repr__
 

Public Attributes

 fixedblocs
 
 name
 
 attrib
 
 offset
 

Detailed Description

Definition at line 37 of file asmbloc.py.

Constructor & Destructor Documentation

def miasm2.core.asmbloc.asm_label.__init__ (   self,
  name = "",
  offset = None 
)

Definition at line 41 of file asmbloc.py.

41 
42  def __init__(self, name="", offset=None):
43  self.fixedblocs = False
44  if is_int(name):
45  name = "loc_%.16X" % (int(name) & 0xFFFFFFFFFFFFFFFF)
46  self.name = name
47  self.attrib = None
48  if offset is None:
49  self.offset = offset
50  else:
51  self.offset = int(offset)

Member Function Documentation

def miasm2.core.asmbloc.asm_label.__repr__ (   self)

Definition at line 58 of file asmbloc.py.

58 
59  def __repr__(self):
60  rep = '<asmlabel '
61  if self.name:
62  rep += repr(self.name) + ' '
63  rep += '>'
64  return rep
65 
def miasm2.core.asmbloc.asm_label.__str__ (   self)

Definition at line 52 of file asmbloc.py.

52 
53  def __str__(self):
54  if isinstance(self.offset, (int, long)):
55  return "%s:0x%08x" % (self.name, self.offset)
56  else:
57  return "%s:%s" % (self.name, str(self.offset))

Member Data Documentation

miasm2.core.asmbloc.asm_label.attrib

Definition at line 46 of file asmbloc.py.

miasm2.core.asmbloc.asm_label.fixedblocs

Definition at line 42 of file asmbloc.py.

miasm2.core.asmbloc.asm_label.name

Definition at line 45 of file asmbloc.py.

miasm2.core.asmbloc.asm_label.offset

Definition at line 48 of file asmbloc.py.


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