lief 0.17.3__cp38-cp38-musllinux_1_2_x86_64.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.
- lief/ART/__init__.pyi +102 -0
- lief/Android/__init__.pyi +33 -0
- lief/COFF/__init__.pyi +708 -0
- lief/DEX/__init__.pyi +518 -0
- lief/ELF/__init__.pyi +5801 -0
- lief/MachO/__init__.pyi +3098 -0
- lief/OAT/__init__.pyi +351 -0
- lief/PE/__init__.pyi +4710 -0
- lief/PE/unwind_aarch64/__init__.pyi +58 -0
- lief/PE/unwind_x64/__init__.pyi +53 -0
- lief/VDEX/__init__.pyi +56 -0
- lief/__init__.py +16 -0
- lief/__init__.pyi +600 -0
- lief/_lief.so +0 -0
- lief/assembly/__init__.pyi +121 -0
- lief/assembly/aarch64/__init__.pyi +22326 -0
- lief/assembly/aarch64/operands/__init__.pyi +48 -0
- lief/assembly/arm/__init__.pyi +9034 -0
- lief/assembly/ebpf/__init__.pyi +1038 -0
- lief/assembly/mips/__init__.pyi +5836 -0
- lief/assembly/powerpc/__init__.pyi +5826 -0
- lief/assembly/riscv/__init__.pyi +28636 -0
- lief/assembly/x86/__init__.pyi +45477 -0
- lief/assembly/x86/operands/__init__.pyi +32 -0
- lief/dsc/__init__.pyi +226 -0
- lief/dwarf/__init__.pyi +306 -0
- lief/dwarf/editor/__init__.pyi +138 -0
- lief/dwarf/parameters/__init__.pyi +14 -0
- lief/dwarf/types/__init__.pyi +167 -0
- lief/logging/__init__.pyi +44 -0
- lief/objc/__init__.pyi +89 -0
- lief/pdb/__init__.pyi +336 -0
- lief/pdb/types/__init__.pyi +69 -0
- lief/py.typed +0 -0
- lief-0.17.3.dist-info/METADATA +85 -0
- lief-0.17.3.dist-info/RECORD +37 -0
- lief-0.17.3.dist-info/WHEEL +5 -0
lief/ART/__init__.pyi
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
from collections.abc import Sequence
|
|
2
|
+
import enum
|
|
3
|
+
import io
|
|
4
|
+
import os
|
|
5
|
+
from typing import Iterator, Optional, Union, overload
|
|
6
|
+
|
|
7
|
+
import lief
|
|
8
|
+
import lief.Android
|
|
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[str | io.IOBase | os.PathLike | bytes | list[int]], name: str = '') -> Optional[File]: ...
|
|
26
|
+
|
|
27
|
+
class File(lief.Object):
|
|
28
|
+
@property
|
|
29
|
+
def header(self) -> Header: ...
|
|
30
|
+
|
|
31
|
+
def __str__(self) -> str: ...
|
|
32
|
+
|
|
33
|
+
class Header(lief.Object):
|
|
34
|
+
@property
|
|
35
|
+
def magic(self) -> list[int]: ...
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def version(self) -> int: ...
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def image_begin(self) -> int: ...
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def image_size(self) -> int: ...
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
def oat_checksum(self) -> int: ...
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def oat_file_begin(self) -> int: ...
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def oat_file_end(self) -> int: ...
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def oat_data_end(self) -> int: ...
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def patch_delta(self) -> int: ...
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def image_roots(self) -> int: ...
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def pointer_size(self) -> int: ...
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def compile_pic(self) -> bool: ...
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def nb_sections(self) -> int: ...
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def nb_methods(self) -> int: ...
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def boot_image_begin(self) -> int: ...
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def boot_image_size(self) -> int: ...
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def boot_oat_begin(self) -> int: ...
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def boot_oat_size(self) -> int: ...
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def storage_mode(self) -> STORAGE_MODES: ...
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def data_size(self) -> int: ...
|
|
93
|
+
|
|
94
|
+
def __str__(self) -> str: ...
|
|
95
|
+
|
|
96
|
+
@overload
|
|
97
|
+
def version(file: str) -> int: ...
|
|
98
|
+
|
|
99
|
+
@overload
|
|
100
|
+
def version(raw: Sequence[int]) -> int: ...
|
|
101
|
+
|
|
102
|
+
def android_version(art_version: int) -> lief.Android.ANDROID_VERSIONS: ...
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import enum
|
|
2
|
+
from typing import Iterator, Optional, Union
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class ANDROID_VERSIONS(enum.Enum):
|
|
6
|
+
@staticmethod
|
|
7
|
+
def from_value(arg: int, /) -> ANDROID_VERSIONS: ...
|
|
8
|
+
|
|
9
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
10
|
+
|
|
11
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
12
|
+
|
|
13
|
+
def __int__(self) -> int: ...
|
|
14
|
+
|
|
15
|
+
UNKNOWN = 0
|
|
16
|
+
|
|
17
|
+
VERSION_601 = 1
|
|
18
|
+
|
|
19
|
+
VERSION_700 = 2
|
|
20
|
+
|
|
21
|
+
VERSION_710 = 3
|
|
22
|
+
|
|
23
|
+
VERSION_712 = 4
|
|
24
|
+
|
|
25
|
+
VERSION_800 = 5
|
|
26
|
+
|
|
27
|
+
VERSION_810 = 6
|
|
28
|
+
|
|
29
|
+
VERSION_900 = 7
|
|
30
|
+
|
|
31
|
+
def code_name(version: ANDROID_VERSIONS) -> str: ...
|
|
32
|
+
|
|
33
|
+
def version_string(version: ANDROID_VERSIONS) -> str: ...
|