lief 0.16.5__cp312-cp312-win_arm64.whl → 0.17.0__cp312-cp312-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/DEX/__init__.pyi CHANGED
@@ -48,115 +48,14 @@ class ACCESS_FLAGS(enum.Enum):
48
48
 
49
49
  DECLARED_SYNCHRONIZED = 131072
50
50
 
51
- class Class(lief.Object):
52
- class it_methods:
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
- def has(self, flag: ACCESS_FLAGS) -> bool: ...
54
+ @overload
55
+ def parse(raw: Sequence[int], name: str = '') -> Optional[File]: ...
158
56
 
159
- def __str__(self) -> str: ...
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 MapItem(lief.Object):
319
- class TYPES(enum.Enum):
320
- @staticmethod
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
- TYPE_ID = 2
221
+ def __len__(self) -> int: ...
334
222
 
335
- PROTO_ID = 3
223
+ def __iter__(self) -> Class.it_methods: ...
336
224
 
337
- FIELD_ID = 4
225
+ def __next__(self) -> Method: ...
338
226
 
339
- METHOD_ID = 5
227
+ class it_fields:
228
+ def __getitem__(self, arg: int, /) -> Field: ...
340
229
 
341
- CLASS_DEF = 6
230
+ def __len__(self) -> int: ...
342
231
 
343
- CALL_SITE_ID = 7
232
+ def __iter__(self) -> Class.it_fields: ...
344
233
 
345
- METHOD_HANDLE = 8
234
+ def __next__(self) -> Field: ...
346
235
 
347
- MAP_LIST = 4096
236
+ class it_named_methods:
237
+ def __getitem__(self, arg: int, /) -> Method: ...
348
238
 
349
- TYPE_LIST = 4097
239
+ def __len__(self) -> int: ...
350
240
 
351
- ANNOTATION_SET_REF_LIST = 4098
241
+ def __iter__(self) -> Class.it_named_methods: ...
352
242
 
353
- ANNOTATION_SET = 4099
243
+ def __next__(self) -> Method: ...
354
244
 
355
- CLASS_DATA = 8192
245
+ class it_named_fields:
246
+ def __getitem__(self, arg: int, /) -> Field: ...
356
247
 
357
- CODE = 8193
248
+ def __len__(self) -> int: ...
358
249
 
359
- STRING_DATA = 8194
250
+ def __iter__(self) -> Class.it_named_fields: ...
360
251
 
361
- DEBUG_INFO = 8195
252
+ def __next__(self) -> Field: ...
362
253
 
363
- ANNOTATION = 8196
254
+ @property
255
+ def fullname(self) -> str: ...
364
256
 
365
- ENCODED_ARRAY = 8197
257
+ @property
258
+ def pretty_name(self) -> str: ...
366
259
 
367
- ANNOTATIONS_DIRECTORY = 8198
260
+ @property
261
+ def name(self) -> str: ...
368
262
 
369
263
  @property
370
- def type(self) -> MapItem.TYPES: ...
264
+ def source_filename(self) -> str: ...
371
265
 
372
266
  @property
373
- def offset(self) -> int: ...
267
+ def package_name(self) -> str: ...
374
268
 
375
269
  @property
376
- def size(self) -> int: ...
270
+ def has_parent(self) -> bool: ...
377
271
 
378
- def __str__(self) -> str: ...
272
+ @property
273
+ def parent(self) -> Class: ...
379
274
 
380
- class MapList(lief.Object):
381
- class it_items_t:
382
- def __getitem__(self, arg: int, /) -> MapItem: ...
275
+ @property
276
+ def methods(self) -> Class.it_methods: ...
383
277
 
384
- def __len__(self) -> int: ...
278
+ def get_method(self, name: str) -> Class.it_named_methods: ...
385
279
 
386
- def __iter__(self) -> MapList.it_items_t: ...
280
+ @property
281
+ def fields(self) -> Class.it_fields: ...
387
282
 
388
- def __next__(self) -> MapItem: ...
283
+ def get_field(self, name: str) -> Class.it_named_fields: ...
389
284
 
390
285
  @property
391
- def items(self) -> MapList.it_items_t: ...
286
+ def access_flags(self) -> list[ACCESS_FLAGS]: ...
392
287
 
393
- def has(self, type: MapItem.TYPES) -> bool: ...
288
+ @property
289
+ def dex2dex_info(self) -> dict[Method, dict[int, int]]: ...
394
290
 
395
- def get(self, type: MapItem.TYPES) -> MapItem: ...
291
+ @property
292
+ def index(self) -> int: ...
396
293
 
397
- def __getitem__(self, arg: MapItem.TYPES, /) -> MapItem: ...
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
- @overload
500
- def parse(filename: str) -> Optional[File]: ...
425
+ class MapList(lief.Object):
426
+ class it_items_t:
427
+ def __getitem__(self, arg: int, /) -> MapItem: ...
501
428
 
502
- @overload
503
- def parse(raw: Sequence[int], name: str = '') -> Optional[File]: ...
429
+ def __len__(self) -> int: ...
504
430
 
505
- @overload
506
- def parse(obj: Union[io.IOBase | os.PathLike], name: str = '') -> Optional[File]: ...
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: ...