lief 0.16.5__cp313-cp313-win_arm64.whl → 0.16.7__cp313-cp313-win_arm64.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.

Potentially problematic release.


This version of lief might be problematic. Click here for more details.

lief/dwarf/__init__.pyi CHANGED
@@ -3,111 +3,140 @@ from typing import Iterator, Optional, Union, overload
3
3
 
4
4
  from . import parameters as parameters, types as types
5
5
  import lief
6
+ import lief.assembly
6
7
 
7
8
 
8
- class CompilationUnit:
9
- class Language:
10
- class LANG(enum.Enum):
11
- @staticmethod
12
- def from_value(arg: int, /) -> CompilationUnit.Language.LANG: ...
9
+ def load(path: str) -> Optional[DebugInfo]: ...
13
10
 
14
- def __eq__(self, arg, /) -> bool: ...
11
+ class Scope:
12
+ class TYPE(enum.Enum):
13
+ UNKNOWN = 0
15
14
 
16
- def __ne__(self, arg, /) -> bool: ...
15
+ UNION = 1
17
16
 
18
- def __int__(self) -> int: ...
17
+ CLASS = 2
19
18
 
20
- UNKNOWN = 0
19
+ STRUCT = 3
21
20
 
22
- C = 1
21
+ NAMESPACE = 4
23
22
 
24
- CPP = 2
23
+ FUNCTION = 5
25
24
 
26
- RUST = 3
25
+ COMPILATION_UNIT = 6
27
26
 
28
- DART = 4
27
+ @property
28
+ def name(self) -> str: ...
29
29
 
30
- MODULA = 5
30
+ @property
31
+ def parent(self) -> Optional[Scope]: ...
31
32
 
32
- FORTRAN = 6
33
+ @property
34
+ def type(self) -> Scope.TYPE: ...
33
35
 
34
- SWIFT = 7
36
+ def chained(self, sep: str = '::') -> str: ...
35
37
 
36
- D = 8
38
+ class Type:
39
+ class KIND(enum.Enum):
40
+ UNKNOWN = 0
37
41
 
38
- JAVA = 9
42
+ UNSPECIFIED = 1
39
43
 
40
- COBOL = 10
44
+ BASE = 2
41
45
 
42
- lang: lief.dwarf.CompilationUnit.Language.LANG
46
+ CONST_KIND = 3
43
47
 
44
- version: int
48
+ CLASS = 4
45
49
 
46
- @property
47
- def name(self) -> str: ...
50
+ ARRAY = 5
48
51
 
49
- @property
50
- def producer(self) -> str: ...
52
+ POINTER = 6
51
53
 
52
- @property
53
- def compilation_dir(self) -> str: ...
54
+ STRUCT = 7
54
55
 
55
- @property
56
- def language(self) -> CompilationUnit.Language: ...
56
+ UNION = 8
57
57
 
58
- @property
59
- def low_address(self) -> int: ...
58
+ TYPEDEF = 9
60
59
 
61
- @property
62
- def high_address(self) -> int: ...
60
+ REF = 10
63
61
 
64
- @property
65
- def size(self) -> int: ...
62
+ SET_TYPE = 11
66
63
 
67
- @property
68
- def ranges(self) -> list[lief.range_t]: ...
64
+ STRING = 12
69
65
 
70
- @overload
71
- def find_function(self, name: str) -> Optional[Function]: ...
66
+ SUBROUTINE = 13
72
67
 
73
- @overload
74
- def find_function(self, addr: int) -> Optional[Function]: ...
68
+ POINTER_MEMBER = 14
75
69
 
76
- @overload
77
- def find_variable(self, addr: int) -> Optional[Variable]: ...
70
+ PACKED = 15
78
71
 
79
- @overload
80
- def find_variable(self, name: str) -> Optional[Variable]: ...
72
+ FILE = 16
73
+
74
+ THROWN = 17
75
+
76
+ VOLATILE = 18
77
+
78
+ RESTRICT = 19
79
+
80
+ INTERFACE = 20
81
+
82
+ SHARED = 21
83
+
84
+ RVALREF = 22
85
+
86
+ TEMPLATE_ALIAS = 23
87
+
88
+ COARRAY = 24
89
+
90
+ DYNAMIC = 25
91
+
92
+ ATOMIC = 26
93
+
94
+ IMMUTABLE = 27
95
+
96
+ ENUM = 28
81
97
 
82
98
  @property
83
- def types(self) -> Iterator[Optional[Type]]: ...
99
+ def kind(self) -> Type.KIND: ...
84
100
 
85
101
  @property
86
- def functions(self) -> Iterator[Optional[Function]]: ...
102
+ def name(self) -> Optional[str]: ...
87
103
 
88
104
  @property
89
- def imported_functions(self) -> Iterator[Optional[Function]]: ...
105
+ def size(self) -> Optional[int]: ...
90
106
 
91
107
  @property
92
- def variables(self) -> Iterator[Optional[Variable]]: ...
108
+ def location(self) -> lief.debug_location_t: ...
93
109
 
94
- class DebugInfo(lief.DebugInfo):
95
- @overload
96
- def find_function(self, name: str) -> Optional[Function]: ...
110
+ @property
111
+ def is_unspecified(self) -> bool: ...
97
112
 
98
- @overload
99
- def find_function(self, addr: int) -> Optional[Function]: ...
113
+ @property
114
+ def scope(self) -> Optional[Scope]: ...
100
115
 
101
- @overload
102
- def find_variable(self, addr: int) -> Optional[Variable]: ...
116
+ class Variable:
117
+ @property
118
+ def name(self) -> str: ...
103
119
 
104
- @overload
105
- def find_variable(self, name: str) -> Optional[Variable]: ...
120
+ @property
121
+ def linkage_name(self) -> str: ...
106
122
 
107
- def find_type(self, name: str) -> Optional[Type]: ...
123
+ @property
124
+ def address(self) -> Optional[int]: ...
108
125
 
109
126
  @property
110
- def compilation_units(self) -> Iterator[Optional[CompilationUnit]]: ...
127
+ def size(self) -> Optional[int]: ...
128
+
129
+ @property
130
+ def is_constexpr(self) -> bool: ...
131
+
132
+ @property
133
+ def debug_location(self) -> lief.debug_location_t: ...
134
+
135
+ @property
136
+ def type(self) -> Optional[Type]: ...
137
+
138
+ @property
139
+ def scope(self) -> Optional[Scope]: ...
111
140
 
112
141
  class Function:
113
142
  @property
@@ -159,134 +188,106 @@ class Parameter:
159
188
  @property
160
189
  def type(self) -> Optional[Type]: ...
161
190
 
162
- class Scope:
163
- class TYPE(enum.Enum):
164
- UNKNOWN = 0
165
-
166
- UNION = 1
167
-
168
- CLASS = 2
169
-
170
- STRUCT = 3
171
-
172
- NAMESPACE = 4
173
-
174
- FUNCTION = 5
175
-
176
- COMPILATION_UNIT = 6
177
-
178
- @property
179
- def name(self) -> str: ...
180
-
181
- @property
182
- def parent(self) -> Optional[Scope]: ...
183
-
184
- @property
185
- def type(self) -> Scope.TYPE: ...
186
-
187
- def chained(self, sep: str = '::') -> str: ...
188
-
189
- class Type:
190
- class KIND(enum.Enum):
191
- UNKNOWN = 0
192
-
193
- UNSPECIFIED = 1
194
-
195
- BASE = 2
196
-
197
- CONST_KIND = 3
198
-
199
- CLASS = 4
200
-
201
- ARRAY = 5
202
-
203
- POINTER = 6
204
-
205
- STRUCT = 7
206
-
207
- UNION = 8
208
-
209
- TYPEDEF = 9
210
-
211
- REF = 10
212
-
213
- SET_TYPE = 11
214
-
215
- STRING = 12
191
+ class CompilationUnit:
192
+ class Language:
193
+ class LANG(enum.Enum):
194
+ @staticmethod
195
+ def from_value(arg: int, /) -> CompilationUnit.Language.LANG: ...
216
196
 
217
- SUBROUTINE = 13
197
+ def __eq__(self, arg, /) -> bool: ...
218
198
 
219
- POINTER_MEMBER = 14
199
+ def __ne__(self, arg, /) -> bool: ...
220
200
 
221
- PACKED = 15
201
+ def __int__(self) -> int: ...
222
202
 
223
- FILE = 16
203
+ UNKNOWN = 0
224
204
 
225
- THROWN = 17
205
+ C = 1
226
206
 
227
- VOLATILE = 18
207
+ CPP = 2
228
208
 
229
- RESTRICT = 19
209
+ RUST = 3
230
210
 
231
- INTERFACE = 20
211
+ DART = 4
232
212
 
233
- SHARED = 21
213
+ MODULA = 5
234
214
 
235
- RVALREF = 22
215
+ FORTRAN = 6
236
216
 
237
- TEMPLATE_ALIAS = 23
217
+ SWIFT = 7
238
218
 
239
- COARRAY = 24
219
+ D = 8
240
220
 
241
- DYNAMIC = 25
221
+ JAVA = 9
242
222
 
243
- ATOMIC = 26
223
+ COBOL = 10
244
224
 
245
- IMMUTABLE = 27
225
+ lang: CompilationUnit.Language.LANG
246
226
 
247
- ENUM = 28
227
+ version: int
248
228
 
249
229
  @property
250
- def kind(self) -> Type.KIND: ...
230
+ def name(self) -> str: ...
251
231
 
252
232
  @property
253
- def name(self) -> Optional[str]: ...
233
+ def producer(self) -> str: ...
254
234
 
255
235
  @property
256
- def size(self) -> Optional[int]: ...
236
+ def compilation_dir(self) -> str: ...
257
237
 
258
238
  @property
259
- def location(self) -> lief.debug_location_t: ...
239
+ def language(self) -> CompilationUnit.Language: ...
260
240
 
261
241
  @property
262
- def is_unspecified(self) -> bool: ...
242
+ def low_address(self) -> int: ...
263
243
 
264
244
  @property
265
- def scope(self) -> Optional[Scope]: ...
245
+ def high_address(self) -> int: ...
266
246
 
267
- class Variable:
268
247
  @property
269
- def name(self) -> str: ...
248
+ def size(self) -> int: ...
270
249
 
271
250
  @property
272
- def linkage_name(self) -> str: ...
251
+ def ranges(self) -> list[lief.range_t]: ...
273
252
 
274
- @property
275
- def address(self) -> Optional[int]: ...
253
+ @overload
254
+ def find_function(self, name: str) -> Optional[Function]: ...
276
255
 
277
- @property
278
- def size(self) -> Optional[int]: ...
256
+ @overload
257
+ def find_function(self, addr: int) -> Optional[Function]: ...
258
+
259
+ @overload
260
+ def find_variable(self, addr: int) -> Optional[Variable]: ...
261
+
262
+ @overload
263
+ def find_variable(self, name: str) -> Optional[Variable]: ...
279
264
 
280
265
  @property
281
- def is_constexpr(self) -> bool: ...
266
+ def types(self) -> Iterator[Optional[Type]]: ...
282
267
 
283
268
  @property
284
- def debug_location(self) -> lief.debug_location_t: ...
269
+ def functions(self) -> Iterator[Optional[Function]]: ...
285
270
 
286
271
  @property
287
- def type(self) -> Optional[Type]: ...
272
+ def imported_functions(self) -> Iterator[Optional[Function]]: ...
288
273
 
289
274
  @property
290
- def scope(self) -> Optional[Scope]: ...
275
+ def variables(self) -> Iterator[Optional[Variable]]: ...
291
276
 
292
- def load(path: str) -> Optional[DebugInfo]: ...
277
+ class DebugInfo(lief.DebugInfo):
278
+ @overload
279
+ def find_function(self, name: str) -> Optional[Function]: ...
280
+
281
+ @overload
282
+ def find_function(self, addr: int) -> Optional[Function]: ...
283
+
284
+ @overload
285
+ def find_variable(self, addr: int) -> Optional[Variable]: ...
286
+
287
+ @overload
288
+ def find_variable(self, name: str) -> Optional[Variable]: ...
289
+
290
+ def find_type(self, name: str) -> Optional[Type]: ...
291
+
292
+ @property
293
+ def compilation_units(self) -> Iterator[Optional[CompilationUnit]]: ...
@@ -1,14 +1,14 @@
1
1
  from typing import Iterator, Optional, Union
2
2
 
3
- import lief
3
+ import lief.dwarf
4
4
 
5
5
 
6
6
  class Formal(lief.dwarf.Parameter):
7
7
  @property
8
8
  def type(self) -> Optional[lief.dwarf.Type]: ...
9
9
 
10
- class TemplateType(lief.dwarf.Parameter):
10
+ class TemplateValue(lief.dwarf.Parameter):
11
11
  pass
12
12
 
13
- class TemplateValue(lief.dwarf.Parameter):
13
+ class TemplateType(lief.dwarf.Parameter):
14
14
  pass
@@ -1,27 +1,54 @@
1
1
  import enum
2
2
  from typing import Iterator, Optional, Union as _Union
3
3
 
4
- import lief
4
+ import lief.dwarf
5
5
 
6
6
 
7
- class Array(lief.dwarf.Type):
8
- class size_info_t:
7
+ class ClassLike(lief.dwarf.Type):
8
+ class Member:
9
9
  @property
10
- def type(self) -> lief.dwarf.Type: ...
10
+ def name(self) -> str: ...
11
11
 
12
12
  @property
13
- def name(self) -> str: ...
13
+ def type(self) -> Optional[lief.dwarf.Type]: ...
14
14
 
15
15
  @property
16
- def size(self) -> int: ...
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]: ...
17
26
 
18
27
  @property
19
- def underlying_type(self) -> lief.dwarf.Type: ...
28
+ def members(self) -> list[ClassLike.Member]: ...
29
+
30
+ def find_member(self, offset: int) -> Optional[ClassLike.Member]: ...
20
31
 
21
32
  @property
22
- def size_info(self) -> Array.size_info_t: ...
33
+ def functions(self) -> Iterator[Optional[lief.dwarf.Function]]: ...
23
34
 
24
- class Atomic(lief.dwarf.Type):
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):
25
52
  @property
26
53
  def underlying_type(self) -> lief.dwarf.Type: ...
27
54
 
@@ -46,44 +73,34 @@ class Base(lief.dwarf.Type):
46
73
  @property
47
74
  def encoding(self) -> Base.ENCODING: ...
48
75
 
49
- class Class(ClassLike):
50
- pass
51
-
52
- class ClassLike(lief.dwarf.Type):
53
- class Member:
54
- @property
55
- def name(self) -> str: ...
56
-
57
- @property
58
- def type(self) -> Optional[lief.dwarf.Type]: ...
59
-
76
+ class Array(lief.dwarf.Type):
77
+ class size_info_t:
60
78
  @property
61
- def is_external(self) -> bool: ...
79
+ def type(self) -> lief.dwarf.Type: ...
62
80
 
63
81
  @property
64
- def is_declaration(self) -> bool: ...
82
+ def name(self) -> str: ...
65
83
 
66
84
  @property
67
- def offset(self) -> Optional[int]: ...
85
+ def size(self) -> int: ...
68
86
 
69
- @property
70
- def bit_offset(self) -> Optional[int]: ...
87
+ @property
88
+ def underlying_type(self) -> lief.dwarf.Type: ...
71
89
 
72
90
  @property
73
- def members(self) -> list[ClassLike.Member]: ...
91
+ def size_info(self) -> Array.size_info_t: ...
74
92
 
75
- def find_member(self, offset: int) -> Optional[ClassLike.Member]: ...
93
+ class Typedef(lief.dwarf.Type):
94
+ @property
95
+ def underlying_type(self) -> lief.dwarf.Type: ...
76
96
 
97
+ class Atomic(lief.dwarf.Type):
77
98
  @property
78
- def functions(self) -> Iterator[Optional[lief.dwarf.Function]]: ...
99
+ def underlying_type(self) -> lief.dwarf.Type: ...
79
100
 
80
101
  class Coarray(lief.dwarf.Type):
81
102
  pass
82
103
 
83
- class Const(lief.dwarf.Type):
84
- @property
85
- def underlying_type(self) -> lief.dwarf.Type: ...
86
-
87
104
  class Dynamic(lief.dwarf.Type):
88
105
  pass
89
106
 
@@ -100,13 +117,6 @@ class Immutable(lief.dwarf.Type):
100
117
  class Interface(lief.dwarf.Type):
101
118
  pass
102
119
 
103
- class Packed(ClassLike):
104
- pass
105
-
106
- class Pointer(lief.dwarf.Type):
107
- @property
108
- def underlying_type(self) -> lief.dwarf.Type: ...
109
-
110
120
  class PointerToMember(lief.dwarf.Type):
111
121
  @property
112
122
  def underlying_type(self) -> lief.dwarf.Type: ...
@@ -137,9 +147,6 @@ class Shared(lief.dwarf.Type):
137
147
  class StringTy(lief.dwarf.Type):
138
148
  pass
139
149
 
140
- class Structure(ClassLike):
141
- pass
142
-
143
150
  class Subroutine(lief.dwarf.Type):
144
151
  @property
145
152
  def parameters(self) -> list[Optional[lief.dwarf.Parameter]]: ...
@@ -155,13 +162,6 @@ class Thrown(lief.dwarf.Type):
155
162
  @property
156
163
  def underlying_type(self) -> lief.dwarf.Type: ...
157
164
 
158
- class Typedef(lief.dwarf.Type):
159
- @property
160
- def underlying_type(self) -> lief.dwarf.Type: ...
161
-
162
- class Union(ClassLike):
163
- pass
164
-
165
165
  class Volatile(lief.dwarf.Type):
166
166
  @property
167
167
  def underlying_type(self) -> lief.dwarf.Type: ...
lief/logging/__init__.pyi CHANGED
@@ -17,28 +17,28 @@ class LEVEL(enum.Enum):
17
17
 
18
18
  INFO = 3
19
19
 
20
- def critical(msg: str) -> None: ...
21
-
22
- def debug(msg: str) -> None: ...
23
-
24
20
  def disable() -> None: ...
25
21
 
26
22
  def enable() -> None: ...
27
23
 
28
- def enable_debug() -> None: ...
29
-
30
- def err(msg: str) -> None: ...
24
+ def set_level(level: LEVEL) -> None: ...
31
25
 
32
26
  def get_level() -> LEVEL: ...
33
27
 
34
- def info(msg: str) -> None: ...
28
+ def set_path(path: str) -> None: ...
35
29
 
36
30
  def log(level: LEVEL, msg: str) -> None: ...
37
31
 
38
- def reset() -> None: ...
39
-
40
- def set_level(level: LEVEL) -> None: ...
32
+ def debug(msg: str) -> None: ...
41
33
 
42
- def set_path(path: str) -> None: ...
34
+ def info(msg: str) -> None: ...
43
35
 
44
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 CHANGED
@@ -1,6 +1,24 @@
1
1
  from typing import Iterator, Optional, Union
2
2
 
3
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
+
4
22
  class Class:
5
23
  @property
6
24
  def name(self) -> str: ...
@@ -28,11 +46,6 @@ class Class:
28
46
 
29
47
  def to_decl(self, opt: DeclOpt = ...) -> str: ...
30
48
 
31
- class DeclOpt:
32
- def __init__(self) -> None: ...
33
-
34
- show_annotations: bool
35
-
36
49
  class IVar:
37
50
  @property
38
51
  def name(self) -> str: ...
@@ -40,18 +53,20 @@ class IVar:
40
53
  @property
41
54
  def mangled_type(self) -> str: ...
42
55
 
43
- class Metadata:
44
- def to_decl(self, opt: DeclOpt = ...) -> str: ...
56
+ class Protocol:
57
+ @property
58
+ def mangled_name(self) -> str: ...
45
59
 
46
60
  @property
47
- def classes(self) -> Iterator[Optional[Class]]: ...
61
+ def optional_methods(self) -> Iterator[Optional[Method]]: ...
48
62
 
49
63
  @property
50
- def protocols(self) -> Iterator[Optional[Protocol]]: ...
64
+ def required_methods(self) -> Iterator[Optional[Method]]: ...
51
65
 
52
- def get_class(self, name: str) -> Optional[Class]: ...
66
+ @property
67
+ def properties(self) -> Iterator[Optional[Property]]: ...
53
68
 
54
- def get_protocol(self, name: str) -> Optional[Protocol]: ...
69
+ def to_decl(self, opt: DeclOpt = ...) -> str: ...
55
70
 
56
71
  class Method:
57
72
  @property
@@ -72,18 +87,3 @@ class Property:
72
87
 
73
88
  @property
74
89
  def attribute(self) -> str: ...
75
-
76
- class Protocol:
77
- @property
78
- def mangled_name(self) -> str: ...
79
-
80
- @property
81
- def optional_methods(self) -> Iterator[Optional[Method]]: ...
82
-
83
- @property
84
- def required_methods(self) -> Iterator[Optional[Method]]: ...
85
-
86
- @property
87
- def properties(self) -> Iterator[Optional[Property]]: ...
88
-
89
- def to_decl(self, opt: DeclOpt = ...) -> str: ...