lief 0.17.3__cp38-cp38-musllinux_1_2_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lief/ART/__init__.pyi +102 -0
- lief/Android/__init__.pyi +33 -0
- lief/COFF/__init__.pyi +708 -0
- lief/DEX/__init__.pyi +518 -0
- lief/ELF/__init__.pyi +5801 -0
- lief/MachO/__init__.pyi +3098 -0
- lief/OAT/__init__.pyi +351 -0
- lief/PE/__init__.pyi +4710 -0
- lief/PE/unwind_aarch64/__init__.pyi +58 -0
- lief/PE/unwind_x64/__init__.pyi +53 -0
- lief/VDEX/__init__.pyi +56 -0
- lief/__init__.py +16 -0
- lief/__init__.pyi +600 -0
- lief/_lief.so +0 -0
- lief/assembly/__init__.pyi +121 -0
- lief/assembly/aarch64/__init__.pyi +22326 -0
- lief/assembly/aarch64/operands/__init__.pyi +48 -0
- lief/assembly/arm/__init__.pyi +9034 -0
- lief/assembly/ebpf/__init__.pyi +1038 -0
- lief/assembly/mips/__init__.pyi +5836 -0
- lief/assembly/powerpc/__init__.pyi +5826 -0
- lief/assembly/riscv/__init__.pyi +28636 -0
- lief/assembly/x86/__init__.pyi +45477 -0
- lief/assembly/x86/operands/__init__.pyi +32 -0
- lief/dsc/__init__.pyi +226 -0
- lief/dwarf/__init__.pyi +306 -0
- lief/dwarf/editor/__init__.pyi +138 -0
- lief/dwarf/parameters/__init__.pyi +14 -0
- lief/dwarf/types/__init__.pyi +167 -0
- lief/logging/__init__.pyi +44 -0
- lief/objc/__init__.pyi +89 -0
- lief/pdb/__init__.pyi +336 -0
- lief/pdb/types/__init__.pyi +69 -0
- lief/py.typed +0 -0
- lief-0.17.3.dist-info/METADATA +85 -0
- lief-0.17.3.dist-info/RECORD +37 -0
- lief-0.17.3.dist-info/WHEEL +5 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import enum
|
|
2
|
+
from typing import Iterator, Optional, Union as _Union
|
|
3
|
+
|
|
4
|
+
import lief.dwarf
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ClassLike(lief.dwarf.Type):
|
|
8
|
+
class Member:
|
|
9
|
+
@property
|
|
10
|
+
def name(self) -> str: ...
|
|
11
|
+
|
|
12
|
+
@property
|
|
13
|
+
def type(self) -> Optional[lief.dwarf.Type]: ...
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def is_external(self) -> bool: ...
|
|
17
|
+
|
|
18
|
+
@property
|
|
19
|
+
def is_declaration(self) -> bool: ...
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def offset(self) -> Optional[int]: ...
|
|
23
|
+
|
|
24
|
+
@property
|
|
25
|
+
def bit_offset(self) -> Optional[int]: ...
|
|
26
|
+
|
|
27
|
+
@property
|
|
28
|
+
def members(self) -> list[ClassLike.Member]: ...
|
|
29
|
+
|
|
30
|
+
def find_member(self, offset: int) -> Optional[ClassLike.Member]: ...
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def functions(self) -> Iterator[Optional[lief.dwarf.Function]]: ...
|
|
34
|
+
|
|
35
|
+
class Structure(ClassLike):
|
|
36
|
+
pass
|
|
37
|
+
|
|
38
|
+
class Class(ClassLike):
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
class Union(ClassLike):
|
|
42
|
+
pass
|
|
43
|
+
|
|
44
|
+
class Packed(ClassLike):
|
|
45
|
+
pass
|
|
46
|
+
|
|
47
|
+
class Pointer(lief.dwarf.Type):
|
|
48
|
+
@property
|
|
49
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
50
|
+
|
|
51
|
+
class Const(lief.dwarf.Type):
|
|
52
|
+
@property
|
|
53
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
54
|
+
|
|
55
|
+
class Base(lief.dwarf.Type):
|
|
56
|
+
class ENCODING(enum.Enum):
|
|
57
|
+
NONE = 0
|
|
58
|
+
|
|
59
|
+
SIGNED = 1
|
|
60
|
+
|
|
61
|
+
SIGNED_CHAR = 2
|
|
62
|
+
|
|
63
|
+
UNSIGNED = 3
|
|
64
|
+
|
|
65
|
+
UNSIGNED_CHAR = 4
|
|
66
|
+
|
|
67
|
+
FLOAT = 5
|
|
68
|
+
|
|
69
|
+
BOOLEAN = 6
|
|
70
|
+
|
|
71
|
+
ADDRESS = 7
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def encoding(self) -> Base.ENCODING: ...
|
|
75
|
+
|
|
76
|
+
class Array(lief.dwarf.Type):
|
|
77
|
+
class size_info_t:
|
|
78
|
+
@property
|
|
79
|
+
def type(self) -> lief.dwarf.Type: ...
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def name(self) -> str: ...
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def size(self) -> int: ...
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def size_info(self) -> Array.size_info_t: ...
|
|
92
|
+
|
|
93
|
+
class Typedef(lief.dwarf.Type):
|
|
94
|
+
@property
|
|
95
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
96
|
+
|
|
97
|
+
class Atomic(lief.dwarf.Type):
|
|
98
|
+
@property
|
|
99
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
100
|
+
|
|
101
|
+
class Coarray(lief.dwarf.Type):
|
|
102
|
+
pass
|
|
103
|
+
|
|
104
|
+
class Dynamic(lief.dwarf.Type):
|
|
105
|
+
pass
|
|
106
|
+
|
|
107
|
+
class Enum(lief.dwarf.Type):
|
|
108
|
+
pass
|
|
109
|
+
|
|
110
|
+
class File(lief.dwarf.Type):
|
|
111
|
+
pass
|
|
112
|
+
|
|
113
|
+
class Immutable(lief.dwarf.Type):
|
|
114
|
+
@property
|
|
115
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
116
|
+
|
|
117
|
+
class Interface(lief.dwarf.Type):
|
|
118
|
+
pass
|
|
119
|
+
|
|
120
|
+
class PointerToMember(lief.dwarf.Type):
|
|
121
|
+
@property
|
|
122
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def containing_type(self) -> Optional[lief.dwarf.Type]: ...
|
|
126
|
+
|
|
127
|
+
class RValueReference(lief.dwarf.Type):
|
|
128
|
+
@property
|
|
129
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
130
|
+
|
|
131
|
+
class Reference(lief.dwarf.Type):
|
|
132
|
+
@property
|
|
133
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
134
|
+
|
|
135
|
+
class Restrict(lief.dwarf.Type):
|
|
136
|
+
@property
|
|
137
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
138
|
+
|
|
139
|
+
class SetTy(lief.dwarf.Type):
|
|
140
|
+
@property
|
|
141
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
142
|
+
|
|
143
|
+
class Shared(lief.dwarf.Type):
|
|
144
|
+
@property
|
|
145
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
146
|
+
|
|
147
|
+
class StringTy(lief.dwarf.Type):
|
|
148
|
+
pass
|
|
149
|
+
|
|
150
|
+
class Subroutine(lief.dwarf.Type):
|
|
151
|
+
@property
|
|
152
|
+
def parameters(self) -> list[Optional[lief.dwarf.Parameter]]: ...
|
|
153
|
+
|
|
154
|
+
class TemplateAlias(lief.dwarf.Type):
|
|
155
|
+
@property
|
|
156
|
+
def parameters(self) -> list[Optional[lief.dwarf.Parameter]]: ...
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
160
|
+
|
|
161
|
+
class Thrown(lief.dwarf.Type):
|
|
162
|
+
@property
|
|
163
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
164
|
+
|
|
165
|
+
class Volatile(lief.dwarf.Type):
|
|
166
|
+
@property
|
|
167
|
+
def underlying_type(self) -> lief.dwarf.Type: ...
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import enum
|
|
2
|
+
from typing import Iterator, Optional, Union
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class LEVEL(enum.Enum):
|
|
6
|
+
OFF = 0
|
|
7
|
+
|
|
8
|
+
TRACE = 1
|
|
9
|
+
|
|
10
|
+
DEBUG = 2
|
|
11
|
+
|
|
12
|
+
CRITICAL = 6
|
|
13
|
+
|
|
14
|
+
ERROR = 5
|
|
15
|
+
|
|
16
|
+
WARN = 4
|
|
17
|
+
|
|
18
|
+
INFO = 3
|
|
19
|
+
|
|
20
|
+
def disable() -> None: ...
|
|
21
|
+
|
|
22
|
+
def enable() -> None: ...
|
|
23
|
+
|
|
24
|
+
def set_level(level: LEVEL) -> None: ...
|
|
25
|
+
|
|
26
|
+
def get_level() -> LEVEL: ...
|
|
27
|
+
|
|
28
|
+
def set_path(path: str) -> None: ...
|
|
29
|
+
|
|
30
|
+
def log(level: LEVEL, msg: str) -> None: ...
|
|
31
|
+
|
|
32
|
+
def debug(msg: str) -> None: ...
|
|
33
|
+
|
|
34
|
+
def info(msg: str) -> None: ...
|
|
35
|
+
|
|
36
|
+
def warn(msg: str) -> None: ...
|
|
37
|
+
|
|
38
|
+
def err(msg: str) -> None: ...
|
|
39
|
+
|
|
40
|
+
def critical(msg: str) -> None: ...
|
|
41
|
+
|
|
42
|
+
def enable_debug() -> None: ...
|
|
43
|
+
|
|
44
|
+
def reset() -> None: ...
|
lief/objc/__init__.pyi
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
from typing import Iterator, Optional, Union
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DeclOpt:
|
|
5
|
+
def __init__(self) -> None: ...
|
|
6
|
+
|
|
7
|
+
show_annotations: bool
|
|
8
|
+
|
|
9
|
+
class Metadata:
|
|
10
|
+
def to_decl(self, opt: DeclOpt = ...) -> str: ...
|
|
11
|
+
|
|
12
|
+
@property
|
|
13
|
+
def classes(self) -> Iterator[Optional[Class]]: ...
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def protocols(self) -> Iterator[Optional[Protocol]]: ...
|
|
17
|
+
|
|
18
|
+
def get_class(self, name: str) -> Optional[Class]: ...
|
|
19
|
+
|
|
20
|
+
def get_protocol(self, name: str) -> Optional[Protocol]: ...
|
|
21
|
+
|
|
22
|
+
class Class:
|
|
23
|
+
@property
|
|
24
|
+
def name(self) -> str: ...
|
|
25
|
+
|
|
26
|
+
@property
|
|
27
|
+
def demangled_name(self) -> str: ...
|
|
28
|
+
|
|
29
|
+
@property
|
|
30
|
+
def super_class(self) -> Optional[Class]: ...
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def is_meta(self) -> bool: ...
|
|
34
|
+
|
|
35
|
+
@property
|
|
36
|
+
def methods(self) -> Iterator[Optional[Method]]: ...
|
|
37
|
+
|
|
38
|
+
@property
|
|
39
|
+
def protocols(self) -> Iterator[Optional[Protocol]]: ...
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
def properties(self) -> Iterator[Optional[Property]]: ...
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def ivars(self) -> Iterator[Optional[IVar]]: ...
|
|
46
|
+
|
|
47
|
+
def to_decl(self, opt: DeclOpt = ...) -> str: ...
|
|
48
|
+
|
|
49
|
+
class IVar:
|
|
50
|
+
@property
|
|
51
|
+
def name(self) -> str: ...
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def mangled_type(self) -> str: ...
|
|
55
|
+
|
|
56
|
+
class Protocol:
|
|
57
|
+
@property
|
|
58
|
+
def mangled_name(self) -> str: ...
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def optional_methods(self) -> Iterator[Optional[Method]]: ...
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def required_methods(self) -> Iterator[Optional[Method]]: ...
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def properties(self) -> Iterator[Optional[Property]]: ...
|
|
68
|
+
|
|
69
|
+
def to_decl(self, opt: DeclOpt = ...) -> str: ...
|
|
70
|
+
|
|
71
|
+
class Method:
|
|
72
|
+
@property
|
|
73
|
+
def name(self) -> str: ...
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def mangled_type(self) -> str: ...
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def address(self) -> int: ...
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def is_instance(self) -> bool: ...
|
|
83
|
+
|
|
84
|
+
class Property:
|
|
85
|
+
@property
|
|
86
|
+
def name(self) -> str: ...
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def attribute(self) -> str: ...
|
lief/pdb/__init__.pyi
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import enum
|
|
2
|
+
import os
|
|
3
|
+
from typing import Iterator, Optional, Union
|
|
4
|
+
|
|
5
|
+
from . import types as types
|
|
6
|
+
import lief
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def load(path: str) -> Optional[DebugInfo]: ...
|
|
10
|
+
|
|
11
|
+
class BuildMetadata:
|
|
12
|
+
class LANG(enum.Enum):
|
|
13
|
+
C = 0
|
|
14
|
+
|
|
15
|
+
CPP = 1
|
|
16
|
+
|
|
17
|
+
FORTRAN = 2
|
|
18
|
+
|
|
19
|
+
MASM = 3
|
|
20
|
+
|
|
21
|
+
PASCAL_LANG = 4
|
|
22
|
+
|
|
23
|
+
BASIC = 5
|
|
24
|
+
|
|
25
|
+
COBOL = 6
|
|
26
|
+
|
|
27
|
+
LINK = 7
|
|
28
|
+
|
|
29
|
+
CVTRES = 8
|
|
30
|
+
|
|
31
|
+
CVTPGD = 9
|
|
32
|
+
|
|
33
|
+
CSHARP = 10
|
|
34
|
+
|
|
35
|
+
VB = 11
|
|
36
|
+
|
|
37
|
+
ILASM = 12
|
|
38
|
+
|
|
39
|
+
JAVA = 13
|
|
40
|
+
|
|
41
|
+
JSCRIPT = 14
|
|
42
|
+
|
|
43
|
+
MSIL = 15
|
|
44
|
+
|
|
45
|
+
HLSL = 16
|
|
46
|
+
|
|
47
|
+
OBJC = 17
|
|
48
|
+
|
|
49
|
+
OBJCPP = 18
|
|
50
|
+
|
|
51
|
+
SWIFT = 19
|
|
52
|
+
|
|
53
|
+
ALIASOBJ = 20
|
|
54
|
+
|
|
55
|
+
RUST = 21
|
|
56
|
+
|
|
57
|
+
GO = 22
|
|
58
|
+
|
|
59
|
+
UNKNOWN = 255
|
|
60
|
+
|
|
61
|
+
class CPU(enum.Enum):
|
|
62
|
+
INTEL_8080 = 0
|
|
63
|
+
|
|
64
|
+
INTEL_8086 = 1
|
|
65
|
+
|
|
66
|
+
INTEL_80286 = 2
|
|
67
|
+
|
|
68
|
+
INTEL_80386 = 3
|
|
69
|
+
|
|
70
|
+
INTEL_80486 = 4
|
|
71
|
+
|
|
72
|
+
PENTIUM = 5
|
|
73
|
+
|
|
74
|
+
PENTIUMPRO = 6
|
|
75
|
+
|
|
76
|
+
PENTIUM3 = 7
|
|
77
|
+
|
|
78
|
+
MIPS = 16
|
|
79
|
+
|
|
80
|
+
MIPS16 = 17
|
|
81
|
+
|
|
82
|
+
MIPS32 = 18
|
|
83
|
+
|
|
84
|
+
MIPS64 = 19
|
|
85
|
+
|
|
86
|
+
MIPSI = 20
|
|
87
|
+
|
|
88
|
+
MIPSII = 21
|
|
89
|
+
|
|
90
|
+
MIPSIII = 22
|
|
91
|
+
|
|
92
|
+
MIPSIV = 23
|
|
93
|
+
|
|
94
|
+
MIPSV = 24
|
|
95
|
+
|
|
96
|
+
M68000 = 32
|
|
97
|
+
|
|
98
|
+
M68010 = 33
|
|
99
|
+
|
|
100
|
+
M68020 = 34
|
|
101
|
+
|
|
102
|
+
M68030 = 35
|
|
103
|
+
|
|
104
|
+
M68040 = 36
|
|
105
|
+
|
|
106
|
+
ALPHA = 48
|
|
107
|
+
|
|
108
|
+
ALPHA_21164 = 49
|
|
109
|
+
|
|
110
|
+
ALPHA_21164A = 50
|
|
111
|
+
|
|
112
|
+
ALPHA_21264 = 51
|
|
113
|
+
|
|
114
|
+
ALPHA_21364 = 52
|
|
115
|
+
|
|
116
|
+
PPC601 = 64
|
|
117
|
+
|
|
118
|
+
PPC603 = 65
|
|
119
|
+
|
|
120
|
+
PPC604 = 66
|
|
121
|
+
|
|
122
|
+
PPC620 = 67
|
|
123
|
+
|
|
124
|
+
PPCFP = 68
|
|
125
|
+
|
|
126
|
+
PPCBE = 69
|
|
127
|
+
|
|
128
|
+
SH3 = 80
|
|
129
|
+
|
|
130
|
+
SH3E = 81
|
|
131
|
+
|
|
132
|
+
SH3DSP = 82
|
|
133
|
+
|
|
134
|
+
SH4 = 83
|
|
135
|
+
|
|
136
|
+
SHMEDIA = 84
|
|
137
|
+
|
|
138
|
+
ARM3 = 96
|
|
139
|
+
|
|
140
|
+
ARM4 = 97
|
|
141
|
+
|
|
142
|
+
ARM4T = 98
|
|
143
|
+
|
|
144
|
+
ARM5 = 99
|
|
145
|
+
|
|
146
|
+
ARM5T = 100
|
|
147
|
+
|
|
148
|
+
ARM6 = 101
|
|
149
|
+
|
|
150
|
+
ARM_XMAC = 102
|
|
151
|
+
|
|
152
|
+
ARM_WMMX = 103
|
|
153
|
+
|
|
154
|
+
ARM7 = 104
|
|
155
|
+
|
|
156
|
+
OMNI = 112
|
|
157
|
+
|
|
158
|
+
IA64 = 128
|
|
159
|
+
|
|
160
|
+
IA64_2 = 129
|
|
161
|
+
|
|
162
|
+
CEE = 144
|
|
163
|
+
|
|
164
|
+
AM33 = 160
|
|
165
|
+
|
|
166
|
+
M32R = 176
|
|
167
|
+
|
|
168
|
+
TRICORE = 192
|
|
169
|
+
|
|
170
|
+
X64 = 208
|
|
171
|
+
|
|
172
|
+
EBC = 224
|
|
173
|
+
|
|
174
|
+
THUMB = 240
|
|
175
|
+
|
|
176
|
+
ARMNT = 244
|
|
177
|
+
|
|
178
|
+
ARM64 = 246
|
|
179
|
+
|
|
180
|
+
HYBRID_X86ARM64 = 247
|
|
181
|
+
|
|
182
|
+
ARM64EC = 248
|
|
183
|
+
|
|
184
|
+
ARM64X = 249
|
|
185
|
+
|
|
186
|
+
D3D11_SHADER = 256
|
|
187
|
+
|
|
188
|
+
UNKNOWN = 255
|
|
189
|
+
|
|
190
|
+
class version_t:
|
|
191
|
+
major: int
|
|
192
|
+
|
|
193
|
+
minor: int
|
|
194
|
+
|
|
195
|
+
build: int
|
|
196
|
+
|
|
197
|
+
qfe: int
|
|
198
|
+
|
|
199
|
+
class build_info_t:
|
|
200
|
+
cwd: str
|
|
201
|
+
|
|
202
|
+
build_tool: str
|
|
203
|
+
|
|
204
|
+
source_file: str
|
|
205
|
+
|
|
206
|
+
pdb: str
|
|
207
|
+
|
|
208
|
+
command_line: str
|
|
209
|
+
|
|
210
|
+
@property
|
|
211
|
+
def frontend_version(self) -> BuildMetadata.version_t: ...
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
def backend_version(self) -> BuildMetadata.version_t: ...
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
def version(self) -> str: ...
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
def language(self) -> BuildMetadata.LANG: ...
|
|
221
|
+
|
|
222
|
+
@property
|
|
223
|
+
def target_cpu(self) -> BuildMetadata.CPU: ...
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
def build_info(self) -> BuildMetadata.build_info_t | None: ...
|
|
227
|
+
|
|
228
|
+
@property
|
|
229
|
+
def env(self) -> list[str]: ...
|
|
230
|
+
|
|
231
|
+
def __str__(self) -> str: ...
|
|
232
|
+
|
|
233
|
+
class Type:
|
|
234
|
+
class KIND(enum.Enum):
|
|
235
|
+
UNKNOWN = 0
|
|
236
|
+
|
|
237
|
+
CLASS = 1
|
|
238
|
+
|
|
239
|
+
POINTER = 2
|
|
240
|
+
|
|
241
|
+
SIMPLE = 3
|
|
242
|
+
|
|
243
|
+
ENUM = 4
|
|
244
|
+
|
|
245
|
+
FUNCTION = 5
|
|
246
|
+
|
|
247
|
+
MODIFIER = 6
|
|
248
|
+
|
|
249
|
+
BITFIELD = 7
|
|
250
|
+
|
|
251
|
+
ARRAY = 8
|
|
252
|
+
|
|
253
|
+
UNION = 9
|
|
254
|
+
|
|
255
|
+
STRUCTURE = 10
|
|
256
|
+
|
|
257
|
+
INTERFACE = 11
|
|
258
|
+
|
|
259
|
+
@property
|
|
260
|
+
def kind(self) -> Type.KIND: ...
|
|
261
|
+
|
|
262
|
+
class DebugInfo(lief.DebugInfo):
|
|
263
|
+
@property
|
|
264
|
+
def age(self) -> int: ...
|
|
265
|
+
|
|
266
|
+
@property
|
|
267
|
+
def guid(self) -> str: ...
|
|
268
|
+
|
|
269
|
+
@staticmethod
|
|
270
|
+
def from_file(filepath: Union[str | os.PathLike]) -> Optional[DebugInfo]: ...
|
|
271
|
+
|
|
272
|
+
def find_type(self, name: str) -> Optional[Type]: ...
|
|
273
|
+
|
|
274
|
+
def find_public_symbol(self, name: str) -> Optional[PublicSymbol]: ...
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
def public_symbols(self) -> Iterator[Optional[PublicSymbol]]: ...
|
|
278
|
+
|
|
279
|
+
@property
|
|
280
|
+
def compilation_units(self) -> Iterator[Optional[CompilationUnit]]: ...
|
|
281
|
+
|
|
282
|
+
@property
|
|
283
|
+
def types(self) -> Iterator[Optional[Type]]: ...
|
|
284
|
+
|
|
285
|
+
def __str__(self) -> str: ...
|
|
286
|
+
|
|
287
|
+
class PublicSymbol:
|
|
288
|
+
@property
|
|
289
|
+
def name(self) -> str: ...
|
|
290
|
+
|
|
291
|
+
@property
|
|
292
|
+
def section_name(self) -> str: ...
|
|
293
|
+
|
|
294
|
+
@property
|
|
295
|
+
def RVA(self) -> int: ...
|
|
296
|
+
|
|
297
|
+
@property
|
|
298
|
+
def demangled_name(self) -> str: ...
|
|
299
|
+
|
|
300
|
+
def __str__(self) -> str: ...
|
|
301
|
+
|
|
302
|
+
class CompilationUnit:
|
|
303
|
+
@property
|
|
304
|
+
def module_name(self) -> str: ...
|
|
305
|
+
|
|
306
|
+
@property
|
|
307
|
+
def object_filename(self) -> str: ...
|
|
308
|
+
|
|
309
|
+
@property
|
|
310
|
+
def sources(self) -> Iterator[str]: ...
|
|
311
|
+
|
|
312
|
+
@property
|
|
313
|
+
def functions(self) -> Iterator[Optional[Function]]: ...
|
|
314
|
+
|
|
315
|
+
@property
|
|
316
|
+
def build_metadata(self) -> Optional[BuildMetadata]: ...
|
|
317
|
+
|
|
318
|
+
def __str__(self) -> str: ...
|
|
319
|
+
|
|
320
|
+
class Function:
|
|
321
|
+
@property
|
|
322
|
+
def name(self) -> str: ...
|
|
323
|
+
|
|
324
|
+
@property
|
|
325
|
+
def RVA(self) -> int: ...
|
|
326
|
+
|
|
327
|
+
@property
|
|
328
|
+
def code_size(self) -> int: ...
|
|
329
|
+
|
|
330
|
+
@property
|
|
331
|
+
def section_name(self) -> str: ...
|
|
332
|
+
|
|
333
|
+
@property
|
|
334
|
+
def debug_location(self) -> lief.debug_location_t: ...
|
|
335
|
+
|
|
336
|
+
def __str__(self) -> str: ...
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
from typing import Iterator, Optional, Union as _Union
|
|
2
|
+
|
|
3
|
+
import lief.pdb
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Simple(lief.pdb.Type):
|
|
7
|
+
pass
|
|
8
|
+
|
|
9
|
+
class Array(lief.pdb.Type):
|
|
10
|
+
pass
|
|
11
|
+
|
|
12
|
+
class BitField(lief.pdb.Type):
|
|
13
|
+
pass
|
|
14
|
+
|
|
15
|
+
class ClassLike(lief.pdb.Type):
|
|
16
|
+
@property
|
|
17
|
+
def attributes(self) -> Iterator[Optional[Attribute]]: ...
|
|
18
|
+
|
|
19
|
+
@property
|
|
20
|
+
def methods(self) -> Iterator[Optional[Method]]: ...
|
|
21
|
+
|
|
22
|
+
@property
|
|
23
|
+
def unique_name(self) -> str: ...
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def name(self) -> str: ...
|
|
27
|
+
|
|
28
|
+
@property
|
|
29
|
+
def size(self) -> int: ...
|
|
30
|
+
|
|
31
|
+
class Class(ClassLike):
|
|
32
|
+
pass
|
|
33
|
+
|
|
34
|
+
class Structure(ClassLike):
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
class Interface(ClassLike):
|
|
38
|
+
pass
|
|
39
|
+
|
|
40
|
+
class Attribute:
|
|
41
|
+
@property
|
|
42
|
+
def name(self) -> str: ...
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def type(self) -> Optional[lief.pdb.Type]: ...
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def field_offset(self) -> int: ...
|
|
49
|
+
|
|
50
|
+
class Method:
|
|
51
|
+
@property
|
|
52
|
+
def name(self) -> str: ...
|
|
53
|
+
|
|
54
|
+
class Enum(lief.pdb.Type):
|
|
55
|
+
pass
|
|
56
|
+
|
|
57
|
+
class Function(lief.pdb.Type):
|
|
58
|
+
pass
|
|
59
|
+
|
|
60
|
+
class Modifier(lief.pdb.Type):
|
|
61
|
+
@property
|
|
62
|
+
def underlying_type(self) -> Optional[lief.pdb.Type]: ...
|
|
63
|
+
|
|
64
|
+
class Pointer(lief.pdb.Type):
|
|
65
|
+
@property
|
|
66
|
+
def underlying_type(self) -> Optional[lief.pdb.Type]: ...
|
|
67
|
+
|
|
68
|
+
class Union(ClassLike):
|
|
69
|
+
pass
|
lief/py.typed
ADDED
|
File without changes
|