lief 0.15.1__cp38-cp38-win_amd64.whl → 0.16.1__cp38-cp38-win_amd64.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.

Files changed (45) hide show
  1. lief/{ART.pyi → ART/__init__.pyi} +65 -45
  2. lief/Android/__init__.pyi +33 -0
  3. lief/DEX/__init__.pyi +512 -0
  4. lief/ELF/__init__.pyi +5342 -0
  5. lief/MachO/__init__.pyi +2678 -0
  6. lief/OAT/__init__.pyi +348 -0
  7. lief/PE/__init__.pyi +4098 -0
  8. lief/VDEX/__init__.pyi +54 -0
  9. lief/__init__.py +3 -0
  10. lief/__init__.pyi +457 -316
  11. lief/_lief.pyd +0 -0
  12. lief/assembly/__init__.pyi +104 -0
  13. lief/assembly/aarch64/__init__.pyi +20200 -0
  14. lief/assembly/aarch64/operands/__init__.pyi +48 -0
  15. lief/assembly/arm/__init__.pyi +9004 -0
  16. lief/assembly/ebpf/__init__.pyi +984 -0
  17. lief/assembly/mips/__init__.pyi +5798 -0
  18. lief/assembly/powerpc/__init__.pyi +5714 -0
  19. lief/assembly/riscv/__init__.pyi +27674 -0
  20. lief/assembly/x86/__init__.pyi +40433 -0
  21. lief/assembly/x86/operands/__init__.pyi +32 -0
  22. lief/dsc/__init__.pyi +220 -0
  23. lief/dwarf/__init__.pyi +224 -125
  24. lief/dwarf/parameters/__init__.pyi +14 -0
  25. lief/dwarf/types/__init__.pyi +167 -0
  26. lief/logging/__init__.pyi +44 -0
  27. lief/objc/__init__.pyi +89 -0
  28. lief/pdb/__init__.pyi +66 -50
  29. lief/pdb/types/__init__.pyi +69 -0
  30. lief-0.16.1.dist-info/METADATA +86 -0
  31. lief-0.16.1.dist-info/RECORD +33 -0
  32. lief/Android.pyi +0 -29
  33. lief/DEX.pyi +0 -382
  34. lief/ELF.pyi +0 -3179
  35. lief/MachO.pyi +0 -1717
  36. lief/OAT.pyi +0 -271
  37. lief/PE.pyi +0 -2951
  38. lief/VDEX.pyi +0 -49
  39. lief/dwarf/types.pyi +0 -72
  40. lief/logging.pyi +0 -27
  41. lief/objc.pyi +0 -68
  42. lief/pdb/types.pyi +0 -68
  43. lief-0.15.1.dist-info/METADATA +0 -157
  44. lief-0.15.1.dist-info/RECORD +0 -21
  45. {lief-0.15.1.dist-info → lief-0.16.1.dist-info}/WHEEL +0 -0
lief/DEX.pyi DELETED
@@ -1,382 +0,0 @@
1
- from typing import Any, ClassVar, Optional, Union
2
-
3
- from typing import overload
4
- import io
5
- import lief.DEX # type: ignore
6
- import lief.DEX.Class # type: ignore
7
- import lief.DEX.File # type: ignore
8
- import lief.DEX.MapItem # type: ignore
9
- import lief.DEX.MapList # type: ignore
10
- import lief.DEX.Prototype # type: ignore
11
- import lief.DEX.Type # type: ignore
12
- import os
13
-
14
- class ACCESS_FLAGS:
15
- ABSTRACT: ClassVar[ACCESS_FLAGS] = ...
16
- ANNOTATION: ClassVar[ACCESS_FLAGS] = ...
17
- BRIDGE: ClassVar[ACCESS_FLAGS] = ...
18
- CONSTRUCTOR: ClassVar[ACCESS_FLAGS] = ...
19
- DECLARED_SYNCHRONIZED: ClassVar[ACCESS_FLAGS] = ...
20
- ENUM: ClassVar[ACCESS_FLAGS] = ...
21
- FINAL: ClassVar[ACCESS_FLAGS] = ...
22
- INTERFACE: ClassVar[ACCESS_FLAGS] = ...
23
- NATIVE: ClassVar[ACCESS_FLAGS] = ...
24
- PRIVATE: ClassVar[ACCESS_FLAGS] = ...
25
- PROTECTED: ClassVar[ACCESS_FLAGS] = ...
26
- PUBLIC: ClassVar[ACCESS_FLAGS] = ...
27
- STATIC: ClassVar[ACCESS_FLAGS] = ...
28
- STRICT: ClassVar[ACCESS_FLAGS] = ...
29
- SYNCHRONIZED: ClassVar[ACCESS_FLAGS] = ...
30
- SYNTHETIC: ClassVar[ACCESS_FLAGS] = ...
31
- TRANSIENT: ClassVar[ACCESS_FLAGS] = ...
32
- UNKNOWN: ClassVar[ACCESS_FLAGS] = ...
33
- VARARGS: ClassVar[ACCESS_FLAGS] = ...
34
- VOLATILE: ClassVar[ACCESS_FLAGS] = ...
35
- __name__: str
36
- def __init__(self, *args, **kwargs) -> None: ...
37
- def __ge__(self, other) -> bool: ...
38
- def __gt__(self, other) -> bool: ...
39
- def __hash__(self) -> int: ...
40
- def __index__(self) -> Any: ...
41
- def __int__(self) -> int: ...
42
- def __le__(self, other) -> bool: ...
43
- def __lt__(self, other) -> bool: ...
44
-
45
- class Class(lief.Object):
46
- class it_fields:
47
- def __init__(self, *args, **kwargs) -> None: ...
48
- def __getitem__(self, arg: int, /) -> lief.DEX.Field: ...
49
- def __iter__(self) -> lief.DEX.Class.it_fields: ...
50
- def __len__(self) -> int: ...
51
- def __next__(self) -> lief.DEX.Field: ...
52
-
53
- class it_methods:
54
- def __init__(self, *args, **kwargs) -> None: ...
55
- def __getitem__(self, arg: int, /) -> lief.DEX.Method: ...
56
- def __iter__(self) -> lief.DEX.Class.it_methods: ...
57
- def __len__(self) -> int: ...
58
- def __next__(self) -> lief.DEX.Method: ...
59
-
60
- class it_named_fields:
61
- def __init__(self, *args, **kwargs) -> None: ...
62
- def __getitem__(self, arg: int, /) -> lief.DEX.Field: ...
63
- def __iter__(self) -> lief.DEX.Class.it_named_fields: ...
64
- def __len__(self) -> int: ...
65
- def __next__(self) -> lief.DEX.Field: ...
66
-
67
- class it_named_methods:
68
- def __init__(self, *args, **kwargs) -> None: ...
69
- def __getitem__(self, arg: int, /) -> lief.DEX.Method: ...
70
- def __iter__(self) -> lief.DEX.Class.it_named_methods: ...
71
- def __len__(self) -> int: ...
72
- def __next__(self) -> lief.DEX.Method: ...
73
- def __init__(self, *args, **kwargs) -> None: ...
74
- def get_field(self, name: str) -> lief.DEX.Class.it_named_fields: ...
75
- def get_method(self, name: str) -> lief.DEX.Class.it_named_methods: ...
76
- def has(self, flag: lief.DEX.ACCESS_FLAGS) -> bool: ...
77
- @property
78
- def access_flags(self) -> list[lief.DEX.ACCESS_FLAGS]: ...
79
- @property
80
- def dex2dex_info(self) -> dict[lief.DEX.Method,dict[int,int]]: ...
81
- @property
82
- def fields(self) -> lief.DEX.Class.it_fields: ...
83
- @property
84
- def fullname(self) -> str: ...
85
- @property
86
- def has_parent(self) -> bool: ...
87
- @property
88
- def index(self) -> int: ...
89
- @property
90
- def methods(self) -> lief.DEX.Class.it_methods: ...
91
- @property
92
- def name(self) -> str: ...
93
- @property
94
- def package_name(self) -> str: ...
95
- @property
96
- def parent(self) -> lief.DEX.Class: ...
97
- @property
98
- def pretty_name(self) -> str: ...
99
- @property
100
- def source_filename(self) -> str: ...
101
-
102
- class CodeInfo(lief.Object):
103
- def __init__(self, *args, **kwargs) -> None: ...
104
-
105
- class Field(lief.Object):
106
- def __init__(self, *args, **kwargs) -> None: ...
107
- def has(self, flag: lief.DEX.ACCESS_FLAGS) -> bool: ...
108
- @property
109
- def access_flags(self) -> list[lief.DEX.ACCESS_FLAGS]: ...
110
- @property
111
- def cls(self) -> lief.DEX.Class: ...
112
- @property
113
- def has_class(self) -> bool: ...
114
- @property
115
- def index(self) -> int: ...
116
- @property
117
- def is_static(self) -> bool: ...
118
- @property
119
- def name(self) -> str: ...
120
- @property
121
- def type(self) -> lief.DEX.Type: ...
122
-
123
- class File(lief.Object):
124
- class it_classes:
125
- def __init__(self, *args, **kwargs) -> None: ...
126
- def __getitem__(self, arg: int, /) -> lief.DEX.Class: ...
127
- def __iter__(self) -> lief.DEX.File.it_classes: ...
128
- def __len__(self) -> int: ...
129
- def __next__(self) -> lief.DEX.Class: ...
130
-
131
- class it_fields:
132
- def __init__(self, *args, **kwargs) -> None: ...
133
- def __getitem__(self, arg: int, /) -> lief.DEX.Field: ...
134
- def __iter__(self) -> lief.DEX.File.it_fields: ...
135
- def __len__(self) -> int: ...
136
- def __next__(self) -> lief.DEX.Field: ...
137
-
138
- class it_methods:
139
- def __init__(self, *args, **kwargs) -> None: ...
140
- def __getitem__(self, arg: int, /) -> lief.DEX.Method: ...
141
- def __iter__(self) -> lief.DEX.File.it_methods: ...
142
- def __len__(self) -> int: ...
143
- def __next__(self) -> lief.DEX.Method: ...
144
-
145
- class it_prototypes:
146
- def __init__(self, *args, **kwargs) -> None: ...
147
- def __getitem__(self, arg: int, /) -> lief.DEX.Prototype: ...
148
- def __iter__(self) -> lief.DEX.File.it_prototypes: ...
149
- def __len__(self) -> int: ...
150
- def __next__(self) -> lief.DEX.Prototype: ...
151
-
152
- class it_strings:
153
- def __init__(self, *args, **kwargs) -> None: ...
154
- def __getitem__(self, arg: int, /) -> str: ...
155
- def __iter__(self) -> lief.DEX.File.it_strings: ...
156
- def __len__(self) -> int: ...
157
- def __next__(self) -> str: ...
158
-
159
- class it_types:
160
- def __init__(self, *args, **kwargs) -> None: ...
161
- def __getitem__(self, arg: int, /) -> lief.DEX.Type: ...
162
- def __iter__(self) -> lief.DEX.File.it_types: ...
163
- def __len__(self) -> int: ...
164
- def __next__(self) -> lief.DEX.Type: ...
165
- location: str
166
- name: str
167
- def __init__(self, *args, **kwargs) -> None: ...
168
- @overload
169
- def get_class(self, classname: str) -> lief.DEX.Class: ...
170
- @overload
171
- def get_class(self, classname: int) -> lief.DEX.Class: ...
172
- def has_class(self, classname: str) -> bool: ...
173
- def raw(self, deoptimize: bool = ...) -> list[int]: ...
174
- def save(self, output: str = ..., deoptimize: bool = ...) -> str: ...
175
- @property
176
- def classes(self) -> lief.DEX.File.it_classes: ...
177
- @property
178
- def dex2dex_json_info(self) -> str: ...
179
- @property
180
- def fields(self) -> lief.DEX.File.it_fields: ...
181
- @property
182
- def header(self) -> lief.DEX.Header: ...
183
- @property
184
- def map(self) -> lief.DEX.MapList: ...
185
- @property
186
- def methods(self) -> lief.DEX.File.it_methods: ...
187
- @property
188
- def prototypes(self) -> lief.DEX.File.it_prototypes: ...
189
- @property
190
- def strings(self) -> lief.DEX.File.it_strings: ...
191
- @property
192
- def types(self) -> lief.DEX.File.it_types: ...
193
- @property
194
- def version(self) -> int: ...
195
-
196
- class Header(lief.Object):
197
- def __init__(self, *args, **kwargs) -> None: ...
198
- @property
199
- def checksum(self) -> int: ...
200
- @property
201
- def classes(self) -> tuple[int,int]: ...
202
- @property
203
- def data(self) -> tuple[int,int]: ...
204
- @property
205
- def endian_tag(self) -> int: ...
206
- @property
207
- def fields(self) -> tuple[int,int]: ...
208
- @property
209
- def file_size(self) -> int: ...
210
- @property
211
- def header_size(self) -> int: ...
212
- @property
213
- def link(self) -> tuple[int,int]: ...
214
- @property
215
- def magic(self) -> list[int]: ...
216
- @property
217
- def map_offset(self) -> int: ...
218
- @property
219
- def methods(self) -> tuple[int,int]: ...
220
- @property
221
- def nb_classes(self) -> int: ...
222
- @property
223
- def nb_methods(self) -> int: ...
224
- @property
225
- def prototypes(self) -> tuple[int,int]: ...
226
- @property
227
- def signature(self) -> list[int]: ...
228
- @property
229
- def strings(self) -> tuple[int,int]: ...
230
- @property
231
- def types(self) -> tuple[int,int]: ...
232
-
233
- class MapItem(lief.Object):
234
- class TYPES:
235
- ANNOTATION: ClassVar[MapItem.TYPES] = ...
236
- ANNOTATIONS_DIRECTORY: ClassVar[MapItem.TYPES] = ...
237
- ANNOTATION_SET: ClassVar[MapItem.TYPES] = ...
238
- ANNOTATION_SET_REF_LIST: ClassVar[MapItem.TYPES] = ...
239
- CALL_SITE_ID: ClassVar[MapItem.TYPES] = ...
240
- CLASS_DATA: ClassVar[MapItem.TYPES] = ...
241
- CLASS_DEF: ClassVar[MapItem.TYPES] = ...
242
- CODE: ClassVar[MapItem.TYPES] = ...
243
- DEBUG_INFO: ClassVar[MapItem.TYPES] = ...
244
- ENCODED_ARRAY: ClassVar[MapItem.TYPES] = ...
245
- FIELD_ID: ClassVar[MapItem.TYPES] = ...
246
- HEADER: ClassVar[MapItem.TYPES] = ...
247
- MAP_LIST: ClassVar[MapItem.TYPES] = ...
248
- METHOD_HANDLE: ClassVar[MapItem.TYPES] = ...
249
- METHOD_ID: ClassVar[MapItem.TYPES] = ...
250
- PROTO_ID: ClassVar[MapItem.TYPES] = ...
251
- STRING_DATA: ClassVar[MapItem.TYPES] = ...
252
- STRING_ID: ClassVar[MapItem.TYPES] = ...
253
- TYPE_ID: ClassVar[MapItem.TYPES] = ...
254
- TYPE_LIST: ClassVar[MapItem.TYPES] = ...
255
- __name__: str
256
- def __init__(self, *args, **kwargs) -> None: ...
257
- @staticmethod
258
- def from_value(arg: int, /) -> lief.DEX.MapItem.TYPES: ...
259
- def __ge__(self, other) -> bool: ...
260
- def __gt__(self, other) -> bool: ...
261
- def __hash__(self) -> int: ...
262
- def __index__(self) -> Any: ...
263
- def __int__(self) -> int: ...
264
- def __le__(self, other) -> bool: ...
265
- def __lt__(self, other) -> bool: ...
266
- @property
267
- def value(self) -> int: ...
268
- def __init__(self, *args, **kwargs) -> None: ...
269
- @property
270
- def offset(self) -> int: ...
271
- @property
272
- def size(self) -> int: ...
273
- @property
274
- def type(self) -> lief.DEX.MapItem.TYPES: ...
275
-
276
- class MapList(lief.Object):
277
- class it_items_t:
278
- def __init__(self, *args, **kwargs) -> None: ...
279
- def __getitem__(self, arg: int, /) -> lief.DEX.MapItem: ...
280
- def __iter__(self) -> lief.DEX.MapList.it_items_t: ...
281
- def __len__(self) -> int: ...
282
- def __next__(self) -> lief.DEX.MapItem: ...
283
- def __init__(self, *args, **kwargs) -> None: ...
284
- def get(self, type: lief.DEX.MapItem.TYPES) -> lief.DEX.MapItem: ...
285
- def has(self, type: lief.DEX.MapItem.TYPES) -> bool: ...
286
- def __getitem__(self, arg: lief.DEX.MapItem.TYPES, /) -> lief.DEX.MapItem: ...
287
- @property
288
- def items(self) -> lief.DEX.MapList.it_items_t: ...
289
-
290
- class Method(lief.Object):
291
- def __init__(self, *args, **kwargs) -> None: ...
292
- def has(self, flag: lief.DEX.ACCESS_FLAGS) -> bool: ...
293
- def insert_dex2dex_info(self, pc: int, index: int) -> None: ...
294
- @property
295
- def access_flags(self) -> list[lief.DEX.ACCESS_FLAGS]: ...
296
- @property
297
- def bytecode(self) -> list[int]: ...
298
- @property
299
- def cls(self) -> lief.DEX.Class: ...
300
- @property
301
- def code_offset(self) -> int: ...
302
- @property
303
- def has_class(self) -> bool: ...
304
- @property
305
- def index(self) -> int: ...
306
- @property
307
- def is_virtual(self) -> bool: ...
308
- @property
309
- def name(self) -> str: ...
310
- @property
311
- def prototype(self) -> lief.DEX.Prototype: ...
312
-
313
- class Prototype(lief.Object):
314
- class it_params:
315
- def __init__(self, *args, **kwargs) -> None: ...
316
- def __getitem__(self, arg: int, /) -> lief.DEX.Type: ...
317
- def __iter__(self) -> lief.DEX.Prototype.it_params: ...
318
- def __len__(self) -> int: ...
319
- def __next__(self) -> lief.DEX.Type: ...
320
- def __init__(self, *args, **kwargs) -> None: ...
321
- @property
322
- def parameters_type(self) -> lief.DEX.Prototype.it_params: ...
323
- @property
324
- def return_type(self) -> lief.DEX.Type: ...
325
-
326
- class Type(lief.Object):
327
- class PRIMITIVES:
328
- BOOLEAN: ClassVar[Type.PRIMITIVES] = ...
329
- BYTE: ClassVar[Type.PRIMITIVES] = ...
330
- CHAR: ClassVar[Type.PRIMITIVES] = ...
331
- DOUBLE: ClassVar[Type.PRIMITIVES] = ...
332
- FLOAT: ClassVar[Type.PRIMITIVES] = ...
333
- INT: ClassVar[Type.PRIMITIVES] = ...
334
- LONG: ClassVar[Type.PRIMITIVES] = ...
335
- SHORT: ClassVar[Type.PRIMITIVES] = ...
336
- VOID_T: ClassVar[Type.PRIMITIVES] = ...
337
- __name__: str
338
- def __init__(self, *args, **kwargs) -> None: ...
339
- def __ge__(self, other) -> bool: ...
340
- def __gt__(self, other) -> bool: ...
341
- def __hash__(self) -> int: ...
342
- def __index__(self) -> Any: ...
343
- def __int__(self) -> int: ...
344
- def __le__(self, other) -> bool: ...
345
- def __lt__(self, other) -> bool: ...
346
-
347
- class TYPES:
348
- ARRAY: ClassVar[Type.TYPES] = ...
349
- CLASS: ClassVar[Type.TYPES] = ...
350
- PRIMITIVE: ClassVar[Type.TYPES] = ...
351
- UNKNOWN: ClassVar[Type.TYPES] = ...
352
- __name__: str
353
- def __init__(self, *args, **kwargs) -> None: ...
354
- def __ge__(self, other) -> bool: ...
355
- def __gt__(self, other) -> bool: ...
356
- def __hash__(self) -> int: ...
357
- def __index__(self) -> Any: ...
358
- def __int__(self) -> int: ...
359
- def __le__(self, other) -> bool: ...
360
- def __lt__(self, other) -> bool: ...
361
- def __init__(self, *args, **kwargs) -> None: ...
362
- @staticmethod
363
- def pretty_name(primitive: lief.DEX.Type.PRIMITIVES) -> str: ...
364
- @property
365
- def dim(self) -> int: ...
366
- @property
367
- def type(self) -> lief.DEX.Type.TYPES: ...
368
- @property
369
- def underlying_array_type(self) -> lief.DEX.Type: ...
370
- @property
371
- def value(self) -> object: ...
372
-
373
- @overload
374
- def parse(filename: str) -> Optional[lief.DEX.File]: ...
375
- @overload
376
- def parse(raw: list[int], name: str = ...) -> Optional[lief.DEX.File]: ...
377
- @overload
378
- def parse(obj: Union[io.IOBase|os.PathLike], name: str = ...) -> Optional[lief.DEX.File]: ...
379
- @overload
380
- def version(file: str) -> int: ...
381
- @overload
382
- def version(raw: list[int]) -> int: ...