lief 0.16.5__cp39-cp39-musllinux_1_2_aarch64.whl → 0.16.7__cp39-cp39-musllinux_1_2_aarch64.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/ART/__init__.pyi +19 -18
- lief/DEX/__init__.pyi +159 -159
- lief/ELF/__init__.pyi +2393 -2393
- lief/MachO/__init__.pyi +1481 -1479
- lief/OAT/__init__.pyi +153 -150
- lief/PE/__init__.pyi +2153 -2153
- lief/VDEX/__init__.pyi +10 -8
- lief/__init__.pyi +268 -263
- lief/_lief.so +0 -0
- lief/assembly/aarch64/__init__.pyi +14 -14
- lief/assembly/aarch64/operands/__init__.pyi +5 -5
- lief/assembly/arm/__init__.pyi +5 -5
- lief/assembly/ebpf/__init__.pyi +5 -5
- lief/assembly/mips/__init__.pyi +5 -5
- lief/assembly/powerpc/__init__.pyi +5 -5
- lief/assembly/riscv/__init__.pyi +5 -5
- lief/assembly/x86/__init__.pyi +14 -14
- lief/assembly/x86/operands/__init__.pyi +5 -5
- lief/dsc/__init__.pyi +26 -24
- lief/dwarf/__init__.pyi +149 -148
- lief/dwarf/parameters/__init__.pyi +3 -3
- lief/dwarf/types/__init__.pyi +49 -49
- lief/logging/__init__.pyi +12 -12
- lief/objc/__init__.pyi +26 -26
- lief/pdb/__init__.pyi +44 -44
- lief/pdb/types/__init__.pyi +22 -22
- {lief-0.16.5.dist-info → lief-0.16.7.dist-info}/METADATA +1 -1
- lief-0.16.7.dist-info/RECORD +33 -0
- lief-0.16.5.dist-info/RECORD +0 -33
- {lief-0.16.5.dist-info → lief-0.16.7.dist-info}/WHEEL +0 -0
lief/ART/__init__.pyi
CHANGED
|
@@ -5,8 +5,25 @@ import os
|
|
|
5
5
|
from typing import Iterator, Optional, Union, overload
|
|
6
6
|
|
|
7
7
|
import lief
|
|
8
|
+
import lief.Android
|
|
8
9
|
|
|
9
10
|
|
|
11
|
+
class STORAGE_MODES(enum.Enum):
|
|
12
|
+
UNCOMPRESSED = 0
|
|
13
|
+
|
|
14
|
+
LZ4 = 1
|
|
15
|
+
|
|
16
|
+
LZ4HC = 2
|
|
17
|
+
|
|
18
|
+
@overload
|
|
19
|
+
def parse(filename: str) -> Optional[File]: ...
|
|
20
|
+
|
|
21
|
+
@overload
|
|
22
|
+
def parse(raw: Sequence[int], name: str = '') -> Optional[File]: ...
|
|
23
|
+
|
|
24
|
+
@overload
|
|
25
|
+
def parse(obj: Union[io.IOBase | os.PathLike], name: str = '') -> Optional[File]: ...
|
|
26
|
+
|
|
10
27
|
class File(lief.Object):
|
|
11
28
|
@property
|
|
12
29
|
def header(self) -> Header: ...
|
|
@@ -76,26 +93,10 @@ class Header(lief.Object):
|
|
|
76
93
|
|
|
77
94
|
def __str__(self) -> str: ...
|
|
78
95
|
|
|
79
|
-
class STORAGE_MODES(enum.Enum):
|
|
80
|
-
UNCOMPRESSED = 0
|
|
81
|
-
|
|
82
|
-
LZ4 = 1
|
|
83
|
-
|
|
84
|
-
LZ4HC = 2
|
|
85
|
-
|
|
86
|
-
def android_version(art_version: int) -> lief.Android.ANDROID_VERSIONS: ...
|
|
87
|
-
|
|
88
|
-
@overload
|
|
89
|
-
def parse(filename: str) -> Optional[File]: ...
|
|
90
|
-
|
|
91
|
-
@overload
|
|
92
|
-
def parse(raw: Sequence[int], name: str = '') -> Optional[File]: ...
|
|
93
|
-
|
|
94
|
-
@overload
|
|
95
|
-
def parse(obj: Union[io.IOBase | os.PathLike], name: str = '') -> Optional[File]: ...
|
|
96
|
-
|
|
97
96
|
@overload
|
|
98
97
|
def version(file: str) -> int: ...
|
|
99
98
|
|
|
100
99
|
@overload
|
|
101
100
|
def version(raw: Sequence[int]) -> int: ...
|
|
101
|
+
|
|
102
|
+
def android_version(art_version: int) -> lief.Android.ANDROID_VERSIONS: ...
|
lief/DEX/__init__.pyi
CHANGED
|
@@ -48,115 +48,14 @@ class ACCESS_FLAGS(enum.Enum):
|
|
|
48
48
|
|
|
49
49
|
DECLARED_SYNCHRONIZED = 131072
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
def __getitem__(self, arg: int, /) -> Method: ...
|
|
54
|
-
|
|
55
|
-
def __len__(self) -> int: ...
|
|
56
|
-
|
|
57
|
-
def __iter__(self) -> Class.it_methods: ...
|
|
58
|
-
|
|
59
|
-
def __next__(self) -> Method: ...
|
|
60
|
-
|
|
61
|
-
class it_fields:
|
|
62
|
-
def __getitem__(self, arg: int, /) -> Field: ...
|
|
63
|
-
|
|
64
|
-
def __len__(self) -> int: ...
|
|
65
|
-
|
|
66
|
-
def __iter__(self) -> Class.it_fields: ...
|
|
67
|
-
|
|
68
|
-
def __next__(self) -> Field: ...
|
|
69
|
-
|
|
70
|
-
class it_named_methods:
|
|
71
|
-
def __getitem__(self, arg: int, /) -> Method: ...
|
|
72
|
-
|
|
73
|
-
def __len__(self) -> int: ...
|
|
74
|
-
|
|
75
|
-
def __iter__(self) -> Class.it_named_methods: ...
|
|
76
|
-
|
|
77
|
-
def __next__(self) -> Method: ...
|
|
78
|
-
|
|
79
|
-
class it_named_fields:
|
|
80
|
-
def __getitem__(self, arg: int, /) -> Field: ...
|
|
81
|
-
|
|
82
|
-
def __len__(self) -> int: ...
|
|
83
|
-
|
|
84
|
-
def __iter__(self) -> Class.it_named_fields: ...
|
|
85
|
-
|
|
86
|
-
def __next__(self) -> Field: ...
|
|
87
|
-
|
|
88
|
-
@property
|
|
89
|
-
def fullname(self) -> str: ...
|
|
90
|
-
|
|
91
|
-
@property
|
|
92
|
-
def pretty_name(self) -> str: ...
|
|
93
|
-
|
|
94
|
-
@property
|
|
95
|
-
def name(self) -> str: ...
|
|
96
|
-
|
|
97
|
-
@property
|
|
98
|
-
def source_filename(self) -> str: ...
|
|
99
|
-
|
|
100
|
-
@property
|
|
101
|
-
def package_name(self) -> str: ...
|
|
102
|
-
|
|
103
|
-
@property
|
|
104
|
-
def has_parent(self) -> bool: ...
|
|
105
|
-
|
|
106
|
-
@property
|
|
107
|
-
def parent(self) -> Class: ...
|
|
108
|
-
|
|
109
|
-
@property
|
|
110
|
-
def methods(self) -> Class.it_methods: ...
|
|
111
|
-
|
|
112
|
-
def get_method(self, name: str) -> Class.it_named_methods: ...
|
|
113
|
-
|
|
114
|
-
@property
|
|
115
|
-
def fields(self) -> Class.it_fields: ...
|
|
116
|
-
|
|
117
|
-
def get_field(self, name: str) -> Class.it_named_fields: ...
|
|
118
|
-
|
|
119
|
-
@property
|
|
120
|
-
def access_flags(self) -> list[ACCESS_FLAGS]: ...
|
|
121
|
-
|
|
122
|
-
@property
|
|
123
|
-
def dex2dex_info(self) -> dict[Method, dict[int, int]]: ...
|
|
124
|
-
|
|
125
|
-
@property
|
|
126
|
-
def index(self) -> int: ...
|
|
127
|
-
|
|
128
|
-
def has(self, flag: ACCESS_FLAGS) -> bool: ...
|
|
129
|
-
|
|
130
|
-
def __str__(self) -> str: ...
|
|
131
|
-
|
|
132
|
-
class CodeInfo(lief.Object):
|
|
133
|
-
def __str__(self) -> str: ...
|
|
134
|
-
|
|
135
|
-
class Field(lief.Object):
|
|
136
|
-
@property
|
|
137
|
-
def name(self) -> str: ...
|
|
138
|
-
|
|
139
|
-
@property
|
|
140
|
-
def index(self) -> int: ...
|
|
141
|
-
|
|
142
|
-
@property
|
|
143
|
-
def has_class(self) -> bool: ...
|
|
144
|
-
|
|
145
|
-
@property
|
|
146
|
-
def cls(self) -> Class: ...
|
|
147
|
-
|
|
148
|
-
@property
|
|
149
|
-
def is_static(self) -> bool: ...
|
|
150
|
-
|
|
151
|
-
@property
|
|
152
|
-
def type(self) -> Type: ...
|
|
153
|
-
|
|
154
|
-
@property
|
|
155
|
-
def access_flags(self) -> list[ACCESS_FLAGS]: ...
|
|
51
|
+
@overload
|
|
52
|
+
def parse(filename: str) -> Optional[File]: ...
|
|
156
53
|
|
|
157
|
-
|
|
54
|
+
@overload
|
|
55
|
+
def parse(raw: Sequence[int], name: str = '') -> Optional[File]: ...
|
|
158
56
|
|
|
159
|
-
|
|
57
|
+
@overload
|
|
58
|
+
def parse(obj: Union[io.IOBase | os.PathLike], name: str = '') -> Optional[File]: ...
|
|
160
59
|
|
|
161
60
|
class File(lief.Object):
|
|
162
61
|
class it_classes:
|
|
@@ -315,86 +214,84 @@ class Header(lief.Object):
|
|
|
315
214
|
|
|
316
215
|
def __str__(self) -> str: ...
|
|
317
216
|
|
|
318
|
-
class
|
|
319
|
-
class
|
|
320
|
-
|
|
321
|
-
def from_value(arg: int, /) -> MapItem.TYPES: ...
|
|
322
|
-
|
|
323
|
-
def __eq__(self, arg, /) -> bool: ...
|
|
324
|
-
|
|
325
|
-
def __ne__(self, arg, /) -> bool: ...
|
|
326
|
-
|
|
327
|
-
def __int__(self) -> int: ...
|
|
328
|
-
|
|
329
|
-
HEADER = 0
|
|
330
|
-
|
|
331
|
-
STRING_ID = 1
|
|
217
|
+
class Class(lief.Object):
|
|
218
|
+
class it_methods:
|
|
219
|
+
def __getitem__(self, arg: int, /) -> Method: ...
|
|
332
220
|
|
|
333
|
-
|
|
221
|
+
def __len__(self) -> int: ...
|
|
334
222
|
|
|
335
|
-
|
|
223
|
+
def __iter__(self) -> Class.it_methods: ...
|
|
336
224
|
|
|
337
|
-
|
|
225
|
+
def __next__(self) -> Method: ...
|
|
338
226
|
|
|
339
|
-
|
|
227
|
+
class it_fields:
|
|
228
|
+
def __getitem__(self, arg: int, /) -> Field: ...
|
|
340
229
|
|
|
341
|
-
|
|
230
|
+
def __len__(self) -> int: ...
|
|
342
231
|
|
|
343
|
-
|
|
232
|
+
def __iter__(self) -> Class.it_fields: ...
|
|
344
233
|
|
|
345
|
-
|
|
234
|
+
def __next__(self) -> Field: ...
|
|
346
235
|
|
|
347
|
-
|
|
236
|
+
class it_named_methods:
|
|
237
|
+
def __getitem__(self, arg: int, /) -> Method: ...
|
|
348
238
|
|
|
349
|
-
|
|
239
|
+
def __len__(self) -> int: ...
|
|
350
240
|
|
|
351
|
-
|
|
241
|
+
def __iter__(self) -> Class.it_named_methods: ...
|
|
352
242
|
|
|
353
|
-
|
|
243
|
+
def __next__(self) -> Method: ...
|
|
354
244
|
|
|
355
|
-
|
|
245
|
+
class it_named_fields:
|
|
246
|
+
def __getitem__(self, arg: int, /) -> Field: ...
|
|
356
247
|
|
|
357
|
-
|
|
248
|
+
def __len__(self) -> int: ...
|
|
358
249
|
|
|
359
|
-
|
|
250
|
+
def __iter__(self) -> Class.it_named_fields: ...
|
|
360
251
|
|
|
361
|
-
|
|
252
|
+
def __next__(self) -> Field: ...
|
|
362
253
|
|
|
363
|
-
|
|
254
|
+
@property
|
|
255
|
+
def fullname(self) -> str: ...
|
|
364
256
|
|
|
365
|
-
|
|
257
|
+
@property
|
|
258
|
+
def pretty_name(self) -> str: ...
|
|
366
259
|
|
|
367
|
-
|
|
260
|
+
@property
|
|
261
|
+
def name(self) -> str: ...
|
|
368
262
|
|
|
369
263
|
@property
|
|
370
|
-
def
|
|
264
|
+
def source_filename(self) -> str: ...
|
|
371
265
|
|
|
372
266
|
@property
|
|
373
|
-
def
|
|
267
|
+
def package_name(self) -> str: ...
|
|
374
268
|
|
|
375
269
|
@property
|
|
376
|
-
def
|
|
270
|
+
def has_parent(self) -> bool: ...
|
|
377
271
|
|
|
378
|
-
|
|
272
|
+
@property
|
|
273
|
+
def parent(self) -> Class: ...
|
|
379
274
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
def __getitem__(self, arg: int, /) -> MapItem: ...
|
|
275
|
+
@property
|
|
276
|
+
def methods(self) -> Class.it_methods: ...
|
|
383
277
|
|
|
384
|
-
|
|
278
|
+
def get_method(self, name: str) -> Class.it_named_methods: ...
|
|
385
279
|
|
|
386
|
-
|
|
280
|
+
@property
|
|
281
|
+
def fields(self) -> Class.it_fields: ...
|
|
387
282
|
|
|
388
|
-
|
|
283
|
+
def get_field(self, name: str) -> Class.it_named_fields: ...
|
|
389
284
|
|
|
390
285
|
@property
|
|
391
|
-
def
|
|
286
|
+
def access_flags(self) -> list[ACCESS_FLAGS]: ...
|
|
392
287
|
|
|
393
|
-
|
|
288
|
+
@property
|
|
289
|
+
def dex2dex_info(self) -> dict[Method, dict[int, int]]: ...
|
|
394
290
|
|
|
395
|
-
|
|
291
|
+
@property
|
|
292
|
+
def index(self) -> int: ...
|
|
396
293
|
|
|
397
|
-
def
|
|
294
|
+
def has(self, flag: ACCESS_FLAGS) -> bool: ...
|
|
398
295
|
|
|
399
296
|
def __str__(self) -> str: ...
|
|
400
297
|
|
|
@@ -432,6 +329,32 @@ class Method(lief.Object):
|
|
|
432
329
|
|
|
433
330
|
def __str__(self) -> str: ...
|
|
434
331
|
|
|
332
|
+
class Field(lief.Object):
|
|
333
|
+
@property
|
|
334
|
+
def name(self) -> str: ...
|
|
335
|
+
|
|
336
|
+
@property
|
|
337
|
+
def index(self) -> int: ...
|
|
338
|
+
|
|
339
|
+
@property
|
|
340
|
+
def has_class(self) -> bool: ...
|
|
341
|
+
|
|
342
|
+
@property
|
|
343
|
+
def cls(self) -> Class: ...
|
|
344
|
+
|
|
345
|
+
@property
|
|
346
|
+
def is_static(self) -> bool: ...
|
|
347
|
+
|
|
348
|
+
@property
|
|
349
|
+
def type(self) -> Type: ...
|
|
350
|
+
|
|
351
|
+
@property
|
|
352
|
+
def access_flags(self) -> list[ACCESS_FLAGS]: ...
|
|
353
|
+
|
|
354
|
+
def has(self, flag: ACCESS_FLAGS) -> bool: ...
|
|
355
|
+
|
|
356
|
+
def __str__(self) -> str: ...
|
|
357
|
+
|
|
435
358
|
class Prototype(lief.Object):
|
|
436
359
|
class it_params:
|
|
437
360
|
def __getitem__(self, arg: int, /) -> Type: ...
|
|
@@ -496,14 +419,91 @@ class Type(lief.Object):
|
|
|
496
419
|
|
|
497
420
|
def __str__(self) -> str: ...
|
|
498
421
|
|
|
499
|
-
|
|
500
|
-
|
|
422
|
+
class MapList(lief.Object):
|
|
423
|
+
class it_items_t:
|
|
424
|
+
def __getitem__(self, arg: int, /) -> MapItem: ...
|
|
501
425
|
|
|
502
|
-
|
|
503
|
-
def parse(raw: Sequence[int], name: str = '') -> Optional[File]: ...
|
|
426
|
+
def __len__(self) -> int: ...
|
|
504
427
|
|
|
505
|
-
|
|
506
|
-
|
|
428
|
+
def __iter__(self) -> MapList.it_items_t: ...
|
|
429
|
+
|
|
430
|
+
def __next__(self) -> MapItem: ...
|
|
431
|
+
|
|
432
|
+
@property
|
|
433
|
+
def items(self) -> MapList.it_items_t: ...
|
|
434
|
+
|
|
435
|
+
def has(self, type: MapItem.TYPES) -> bool: ...
|
|
436
|
+
|
|
437
|
+
def get(self, type: MapItem.TYPES) -> MapItem: ...
|
|
438
|
+
|
|
439
|
+
def __getitem__(self, arg: MapItem.TYPES, /) -> MapItem: ...
|
|
440
|
+
|
|
441
|
+
def __str__(self) -> str: ...
|
|
442
|
+
|
|
443
|
+
class MapItem(lief.Object):
|
|
444
|
+
class TYPES(enum.Enum):
|
|
445
|
+
@staticmethod
|
|
446
|
+
def from_value(arg: int, /) -> MapItem.TYPES: ...
|
|
447
|
+
|
|
448
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
449
|
+
|
|
450
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
451
|
+
|
|
452
|
+
def __int__(self) -> int: ...
|
|
453
|
+
|
|
454
|
+
HEADER = 0
|
|
455
|
+
|
|
456
|
+
STRING_ID = 1
|
|
457
|
+
|
|
458
|
+
TYPE_ID = 2
|
|
459
|
+
|
|
460
|
+
PROTO_ID = 3
|
|
461
|
+
|
|
462
|
+
FIELD_ID = 4
|
|
463
|
+
|
|
464
|
+
METHOD_ID = 5
|
|
465
|
+
|
|
466
|
+
CLASS_DEF = 6
|
|
467
|
+
|
|
468
|
+
CALL_SITE_ID = 7
|
|
469
|
+
|
|
470
|
+
METHOD_HANDLE = 8
|
|
471
|
+
|
|
472
|
+
MAP_LIST = 4096
|
|
473
|
+
|
|
474
|
+
TYPE_LIST = 4097
|
|
475
|
+
|
|
476
|
+
ANNOTATION_SET_REF_LIST = 4098
|
|
477
|
+
|
|
478
|
+
ANNOTATION_SET = 4099
|
|
479
|
+
|
|
480
|
+
CLASS_DATA = 8192
|
|
481
|
+
|
|
482
|
+
CODE = 8193
|
|
483
|
+
|
|
484
|
+
STRING_DATA = 8194
|
|
485
|
+
|
|
486
|
+
DEBUG_INFO = 8195
|
|
487
|
+
|
|
488
|
+
ANNOTATION = 8196
|
|
489
|
+
|
|
490
|
+
ENCODED_ARRAY = 8197
|
|
491
|
+
|
|
492
|
+
ANNOTATIONS_DIRECTORY = 8198
|
|
493
|
+
|
|
494
|
+
@property
|
|
495
|
+
def type(self) -> MapItem.TYPES: ...
|
|
496
|
+
|
|
497
|
+
@property
|
|
498
|
+
def offset(self) -> int: ...
|
|
499
|
+
|
|
500
|
+
@property
|
|
501
|
+
def size(self) -> int: ...
|
|
502
|
+
|
|
503
|
+
def __str__(self) -> str: ...
|
|
504
|
+
|
|
505
|
+
class CodeInfo(lief.Object):
|
|
506
|
+
def __str__(self) -> str: ...
|
|
507
507
|
|
|
508
508
|
@overload
|
|
509
509
|
def version(file: str) -> int: ...
|