structure
Structure management
Structure
Bases: dict
Structure
All IDA structure are merged inside this class (Enum, Structure, Union).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
structure |
'quokka.pb.Quokka.Structure'
|
Structure protobuf data |
required |
program |
Program
|
Program back reference |
required |
Attributes:
Name | Type | Description |
---|---|---|
program |
Program
|
Program backreference |
name |
str
|
Structure name |
size |
Optional[int]
|
Structure size (if known) |
type |
Structure type |
|
index_to_offset |
Dict[int, int]
|
Mapping from offsets to structure members |
comments |
List[str]
|
Structure comments |
Source code in quokka/structure.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|
__init__(structure, program)
Constructor
Source code in quokka/structure.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|
StructureMember
StructureMember
This class represents structure members (fields).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
member |
'quokka.pb.Quokka.Structure.Member'
|
Protobuf data |
required |
structure |
Structure
|
Reference to the parent structure |
required |
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
Member name |
size |
int
|
Member size (if known) |
type |
DataType
|
Member data type |
value |
Optional[int]
|
Member value |
comments |
List[str]
|
Member comments |
Source code in quokka/structure.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
structure: Structure
property
Back reference to the parent structure
__init__(member, structure)
Constructor
Source code in quokka/structure.py
46 47 48 49 50 51 52 53 54 55 56 57 58 |
|