lief 0.17.3__cp314-cp314-manylinux_2_28_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 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: ...