lief 0.16.5__cp38-cp38-macosx_11_0_arm64.whl → 0.17.0__cp38-cp38-macosx_11_0_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/ART/__init__.pyi +19 -18
- lief/COFF/__init__.pyi +708 -0
- lief/DEX/__init__.pyi +165 -159
- lief/ELF/__init__.pyi +2807 -2348
- lief/MachO/__init__.pyi +1877 -1457
- lief/OAT/__init__.pyi +153 -150
- lief/PE/__init__.pyi +2633 -2021
- lief/PE/unwind_aarch64/__init__.pyi +58 -0
- lief/PE/unwind_x64/__init__.pyi +53 -0
- lief/VDEX/__init__.pyi +10 -8
- lief/__init__.py +1 -1
- lief/__init__.pyi +280 -249
- lief/_lief.so +0 -0
- lief/assembly/__init__.pyi +17 -0
- lief/assembly/aarch64/__init__.pyi +11015 -8889
- lief/assembly/aarch64/operands/__init__.pyi +5 -5
- lief/assembly/arm/__init__.pyi +4521 -4491
- lief/assembly/ebpf/__init__.pyi +535 -481
- lief/assembly/mips/__init__.pyi +2926 -2888
- lief/assembly/powerpc/__init__.pyi +2958 -2846
- lief/assembly/riscv/__init__.pyi +14788 -13826
- lief/assembly/x86/__init__.pyi +24970 -19926
- lief/assembly/x86/operands/__init__.pyi +5 -5
- lief/dsc/__init__.pyi +31 -25
- lief/dwarf/__init__.pyi +160 -146
- lief/dwarf/editor/__init__.pyi +138 -0
- 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 +272 -38
- lief/pdb/types/__init__.pyi +22 -22
- {lief-0.16.5.dist-info → lief-0.17.0.dist-info}/METADATA +1 -1
- lief-0.17.0.dist-info/RECORD +37 -0
- lief-0.16.5.dist-info/RECORD +0 -33
- {lief-0.16.5.dist-info → lief-0.17.0.dist-info}/WHEEL +0 -0
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[str | io.IOBase | os.PathLike | bytes | list[int]], 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
|
|
|
@@ -430,6 +327,35 @@ class Method(lief.Object):
|
|
|
430
327
|
|
|
431
328
|
def insert_dex2dex_info(self, pc: int, index: int) -> None: ...
|
|
432
329
|
|
|
330
|
+
@property
|
|
331
|
+
def code_info(self) -> CodeInfo: ...
|
|
332
|
+
|
|
333
|
+
def __str__(self) -> str: ...
|
|
334
|
+
|
|
335
|
+
class Field(lief.Object):
|
|
336
|
+
@property
|
|
337
|
+
def name(self) -> str: ...
|
|
338
|
+
|
|
339
|
+
@property
|
|
340
|
+
def index(self) -> int: ...
|
|
341
|
+
|
|
342
|
+
@property
|
|
343
|
+
def has_class(self) -> bool: ...
|
|
344
|
+
|
|
345
|
+
@property
|
|
346
|
+
def cls(self) -> Class: ...
|
|
347
|
+
|
|
348
|
+
@property
|
|
349
|
+
def is_static(self) -> bool: ...
|
|
350
|
+
|
|
351
|
+
@property
|
|
352
|
+
def type(self) -> Type: ...
|
|
353
|
+
|
|
354
|
+
@property
|
|
355
|
+
def access_flags(self) -> list[ACCESS_FLAGS]: ...
|
|
356
|
+
|
|
357
|
+
def has(self, flag: ACCESS_FLAGS) -> bool: ...
|
|
358
|
+
|
|
433
359
|
def __str__(self) -> str: ...
|
|
434
360
|
|
|
435
361
|
class Prototype(lief.Object):
|
|
@@ -496,14 +422,94 @@ class Type(lief.Object):
|
|
|
496
422
|
|
|
497
423
|
def __str__(self) -> str: ...
|
|
498
424
|
|
|
499
|
-
|
|
500
|
-
|
|
425
|
+
class MapList(lief.Object):
|
|
426
|
+
class it_items_t:
|
|
427
|
+
def __getitem__(self, arg: int, /) -> MapItem: ...
|
|
501
428
|
|
|
502
|
-
|
|
503
|
-
def parse(raw: Sequence[int], name: str = '') -> Optional[File]: ...
|
|
429
|
+
def __len__(self) -> int: ...
|
|
504
430
|
|
|
505
|
-
|
|
506
|
-
|
|
431
|
+
def __iter__(self) -> MapList.it_items_t: ...
|
|
432
|
+
|
|
433
|
+
def __next__(self) -> MapItem: ...
|
|
434
|
+
|
|
435
|
+
@property
|
|
436
|
+
def items(self) -> MapList.it_items_t: ...
|
|
437
|
+
|
|
438
|
+
def has(self, type: MapItem.TYPES) -> bool: ...
|
|
439
|
+
|
|
440
|
+
def get(self, type: MapItem.TYPES) -> MapItem: ...
|
|
441
|
+
|
|
442
|
+
def __getitem__(self, arg: MapItem.TYPES, /) -> MapItem: ...
|
|
443
|
+
|
|
444
|
+
def __str__(self) -> str: ...
|
|
445
|
+
|
|
446
|
+
class MapItem(lief.Object):
|
|
447
|
+
class TYPES(enum.Enum):
|
|
448
|
+
@staticmethod
|
|
449
|
+
def from_value(arg: int, /) -> MapItem.TYPES: ...
|
|
450
|
+
|
|
451
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
452
|
+
|
|
453
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
454
|
+
|
|
455
|
+
def __int__(self) -> int: ...
|
|
456
|
+
|
|
457
|
+
HEADER = 0
|
|
458
|
+
|
|
459
|
+
STRING_ID = 1
|
|
460
|
+
|
|
461
|
+
TYPE_ID = 2
|
|
462
|
+
|
|
463
|
+
PROTO_ID = 3
|
|
464
|
+
|
|
465
|
+
FIELD_ID = 4
|
|
466
|
+
|
|
467
|
+
METHOD_ID = 5
|
|
468
|
+
|
|
469
|
+
CLASS_DEF = 6
|
|
470
|
+
|
|
471
|
+
CALL_SITE_ID = 7
|
|
472
|
+
|
|
473
|
+
METHOD_HANDLE = 8
|
|
474
|
+
|
|
475
|
+
MAP_LIST = 4096
|
|
476
|
+
|
|
477
|
+
TYPE_LIST = 4097
|
|
478
|
+
|
|
479
|
+
ANNOTATION_SET_REF_LIST = 4098
|
|
480
|
+
|
|
481
|
+
ANNOTATION_SET = 4099
|
|
482
|
+
|
|
483
|
+
CLASS_DATA = 8192
|
|
484
|
+
|
|
485
|
+
CODE = 8193
|
|
486
|
+
|
|
487
|
+
STRING_DATA = 8194
|
|
488
|
+
|
|
489
|
+
DEBUG_INFO = 8195
|
|
490
|
+
|
|
491
|
+
ANNOTATION = 8196
|
|
492
|
+
|
|
493
|
+
ENCODED_ARRAY = 8197
|
|
494
|
+
|
|
495
|
+
ANNOTATIONS_DIRECTORY = 8198
|
|
496
|
+
|
|
497
|
+
@property
|
|
498
|
+
def type(self) -> MapItem.TYPES: ...
|
|
499
|
+
|
|
500
|
+
@property
|
|
501
|
+
def offset(self) -> int: ...
|
|
502
|
+
|
|
503
|
+
@property
|
|
504
|
+
def size(self) -> int: ...
|
|
505
|
+
|
|
506
|
+
def __str__(self) -> str: ...
|
|
507
|
+
|
|
508
|
+
class CodeInfo(lief.Object):
|
|
509
|
+
@property
|
|
510
|
+
def nb_registers(self) -> int: ...
|
|
511
|
+
|
|
512
|
+
def __str__(self) -> str: ...
|
|
507
513
|
|
|
508
514
|
@overload
|
|
509
515
|
def version(file: str) -> int: ...
|