This commit is contained in:
Romain Thomas
2026-03-17 15:01:41 +01:00
parent 62700dfd05
commit 702f4e51b8
11 changed files with 255 additions and 224 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ if (LIEF_EXTERNAL_NANOBIND)
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
find_package(nanobind REQUIRED)
else()
set(NANOBIND_VERSION 2.11.0.r17.g94ad040)
set(NANOBIND_SHA256 SHA256=0018b31936af0d1b6ac0bee3d86b6d0b6b022e3a2d0399893c3b116ed7c404ad)
set(NANOBIND_VERSION 2.12.0.r18.g2ed93bf)
set(NANOBIND_SHA256 SHA256=9565ad98a2b776ab9cddab5c4898dbf6df28ab78607d0269b9c92b36e5a39d94)
set(NANOBIND_URL "${THIRD_PARTY_DIRECTORY}/nanobind-${NANOBIND_VERSION}.zip"
CACHE STRING "URL to the Nanobind")
FetchContent_Declare(nanobind
+19 -12
View File
@@ -1,7 +1,14 @@
import enum
import io
import os
from typing import Iterator, Optional, Union, overload
from typing import (
ClassVar,
Final,
Iterator,
Optional,
Union,
overload
)
import lief
import lief.PE
@@ -116,11 +123,11 @@ class Binary:
@property
def string_table(self) -> lief.PE.Binary.it_strings_table: ...
def find_string(self, offset: int) -> String: ...
def find_string(self, offset: int) -> String | None: ...
def find_function(self, name: str) -> Symbol: ...
def find_function(self, name: str) -> Symbol | None: ...
def find_demangled_function(self, name: str) -> Symbol: ...
def find_demangled_function(self, name: str) -> Symbol | None: ...
@overload
def disassemble(self, function: Symbol) -> Iterator[Optional[lief.assembly.Instruction]]: ...
@@ -135,9 +142,9 @@ class Binary:
class ParserConfig:
def __init__(self) -> None: ...
default_conf: ParserConfig = ...
default_conf: ClassVar[Final[ParserConfig]] = ...
all: ParserConfig = ...
all: ClassVar[Final[ParserConfig]] = ...
def parse(obj: Union[str | io.IOBase | os.PathLike | bytes | list[int]], config: ParserConfig = ...) -> Optional[Binary]: ...
@@ -296,7 +303,7 @@ class Symbol(lief.Symbol):
section_idx: int
@property
def section(self) -> Section: ...
def section(self) -> Section | None: ...
@property
def is_external(self) -> bool: ...
@@ -323,7 +330,7 @@ class Symbol(lief.Symbol):
def auxiliary_symbols(self) -> Symbol.it_auxiliary_symbols_t: ...
@property
def coff_name(self) -> String: ...
def coff_name(self) -> String | None: ...
@property
def demangled_name(self) -> str: ...
@@ -393,7 +400,7 @@ class Section(lief.Section):
def comdat_info(self) -> Section.ComdatInfo | None: ...
@property
def coff_string(self) -> String: ...
def coff_string(self) -> String | None: ...
def __str__(self) -> str: ...
@@ -570,13 +577,13 @@ class Relocation(lief.Relocation):
def symbol_idx(self) -> int: ...
@property
def symbol(self) -> Symbol: ...
def symbol(self) -> Symbol | None: ...
@property
def type(self) -> Relocation.TYPE: ...
@property
def section(self) -> Section: ...
def section(self) -> Section | None: ...
def __str__(self) -> str: ...
@@ -626,7 +633,7 @@ class AuxiliaryCLRToken(AuxiliarySymbol):
def symbol_idx(self) -> int: ...
@property
def symbol(self) -> Symbol: ...
def symbol(self) -> Symbol | None: ...
@property
def rgb_reserved(self) -> memoryview: ...
+8 -8
View File
@@ -124,10 +124,10 @@ class File(lief.Object):
def has_class(self, classname: str) -> bool: ...
@overload
def get_class(self, classname: str) -> Class: ...
def get_class(self, classname: str) -> Class | None: ...
@overload
def get_class(self, classname: int) -> Class: ...
def get_class(self, classname: int) -> Class | None: ...
@property
def methods(self) -> File.it_methods: ...
@@ -270,7 +270,7 @@ class Class(lief.Object):
def has_parent(self) -> bool: ...
@property
def parent(self) -> Class: ...
def parent(self) -> Class | None: ...
@property
def methods(self) -> Class.it_methods: ...
@@ -306,7 +306,7 @@ class Method(lief.Object):
def has_class(self) -> bool: ...
@property
def cls(self) -> Class: ...
def cls(self) -> Class | None: ...
@property
def code_offset(self) -> int: ...
@@ -318,7 +318,7 @@ class Method(lief.Object):
def is_virtual(self) -> bool: ...
@property
def prototype(self) -> Prototype: ...
def prototype(self) -> Prototype | None: ...
@property
def access_flags(self) -> list[ACCESS_FLAGS]: ...
@@ -343,13 +343,13 @@ class Field(lief.Object):
def has_class(self) -> bool: ...
@property
def cls(self) -> Class: ...
def cls(self) -> Class | None: ...
@property
def is_static(self) -> bool: ...
@property
def type(self) -> Type: ...
def type(self) -> Type | None: ...
@property
def access_flags(self) -> list[ACCESS_FLAGS]: ...
@@ -369,7 +369,7 @@ class Prototype(lief.Object):
def __next__(self) -> Type: ...
@property
def return_type(self) -> Type: ...
def return_type(self) -> Type | None: ...
@property
def parameters_type(self) -> Prototype.it_params: ...
+48 -41
View File
@@ -2,7 +2,14 @@ from collections.abc import Iterable, Mapping, Sequence
import enum
import io
import os
from typing import Iterator, Optional, Union, overload
from typing import (
ClassVar,
Final,
Iterator,
Optional,
Union,
overload
)
import lief
@@ -414,7 +421,7 @@ class ParserConfig:
page_size: int
all: ParserConfig = ...
all: ClassVar[Final[ParserConfig]] = ...
def parse(obj: Union[str | io.IOBase | os.PathLike | bytes | list[int]], config: ParserConfig = ...) -> Optional[Binary]: ...
@@ -425,14 +432,14 @@ class SymbolVersion(lief.Object):
@overload
def __init__(self, arg: int, /) -> None: ...
local: SymbolVersion = ...
local: ClassVar[Final[SymbolVersion]] = ...
value: int
@property
def has_auxiliary_version(self) -> bool: ...
symbol_version_auxiliary: SymbolVersionAux
symbol_version_auxiliary: SymbolVersionAux | None
def drop_version(self, value: int) -> None: ...
@@ -588,10 +595,10 @@ class Binary(lief.Binary):
def add(self, arg: DynamicEntry, /) -> DynamicEntry: ...
@overload
def add(self, section: Section, loaded: bool = True, pos: Binary.SEC_INSERT_POS = Binary.SEC_INSERT_POS.AUTO) -> Section: ...
def add(self, section: Section, loaded: bool = True, pos: Binary.SEC_INSERT_POS = Binary.SEC_INSERT_POS.AUTO) -> Section | None: ...
@overload
def add(self, segment: Segment, base: int = 0) -> Segment: ...
def add(self, segment: Segment, base: int = 0) -> Segment | None: ...
@overload
def add(self, note: Note) -> Note: ...
@@ -618,7 +625,7 @@ class Binary(lief.Binary):
def add_pltgot_relocation(self, relocation: Relocation) -> Relocation: ...
def add_object_relocation(self, relocation: Relocation, section: Section) -> Relocation: ...
def add_object_relocation(self, relocation: Relocation, section: Section) -> Relocation | None: ...
@property
def pltgot_relocations(self) -> Binary.it_filter_relocation: ...
@@ -642,13 +649,13 @@ class Binary(lief.Binary):
def use_gnu_hash(self) -> bool: ...
@property
def gnu_hash(self) -> GnuHash: ...
def gnu_hash(self) -> GnuHash | None: ...
@property
def use_sysv_hash(self) -> bool: ...
@property
def sysv_hash(self) -> SysvHash: ...
def sysv_hash(self) -> SysvHash | None: ...
@property
def imagebase(self) -> int: ...
@@ -667,25 +674,25 @@ class Binary(lief.Binary):
interpreter: str
def section_from_offset(self, offset: int, skip_nobits: bool = True) -> Section: ...
def section_from_offset(self, offset: int, skip_nobits: bool = True) -> Section | None: ...
def section_from_virtual_address(self, address: int, skip_nobits: bool = True) -> Section: ...
def section_from_virtual_address(self, address: int, skip_nobits: bool = True) -> Section | None: ...
def segment_from_virtual_address(self, address: int) -> Segment: ...
def segment_from_virtual_address(self, address: int) -> Segment | None: ...
def segment_from_offset(self, offset: int) -> Segment: ...
def segment_from_offset(self, offset: int) -> Segment | None: ...
@overload
def get(self, tag: DynamicEntry.TAG) -> DynamicEntry: ...
def get(self, tag: DynamicEntry.TAG) -> DynamicEntry | None: ...
@overload
def get(self, type: Segment.TYPE) -> Segment: ...
def get(self, type: Segment.TYPE) -> Segment | None: ...
@overload
def get(self, type: Note.TYPE) -> Note: ...
def get(self, type: Note.TYPE) -> Note | None: ...
@overload
def get(self, type: Section.TYPE) -> Section: ...
def get(self, type: Section.TYPE) -> Section | None: ...
@overload
def has(self, tag: DynamicEntry.TAG) -> bool: ...
@@ -723,7 +730,7 @@ class Binary(lief.Binary):
def has_section_with_va(self, virtual_address: int) -> bool: ...
def get_section(self, section_name: str) -> Section: ...
def get_section(self, section_name: str) -> Section | None: ...
def add_symtab_symbol(self, symbol: Symbol) -> Symbol: ...
@@ -731,13 +738,13 @@ class Binary(lief.Binary):
def virtual_address_to_offset(self, virtual_address: int) -> Union[int, lief.lief_errors]: ...
def replace(self, new_segment: Segment, original_segment: Segment, base: int = 0) -> Segment: ...
def replace(self, new_segment: Segment, original_segment: Segment, base: int = 0) -> Segment | None: ...
@overload
def extend(self, segment: Segment, size: int) -> Segment: ...
def extend(self, segment: Segment, size: int) -> Segment | None: ...
@overload
def extend(self, segment: Section, size: int) -> Section: ...
def extend(self, segment: Section, size: int) -> Section | None: ...
@overload
def remove(self, dynamic_entry: DynamicEntry) -> None: ...
@@ -797,15 +804,15 @@ class Binary(lief.Binary):
def remove_library(self, library_name: str) -> None: ...
def get_library(self, library_name: str) -> DynamicEntryLibrary: ...
def get_library(self, library_name: str) -> DynamicEntryLibrary | None: ...
def has_dynamic_symbol(self, symbol_name: str) -> bool: ...
def get_dynamic_symbol(self, symbol_name: str) -> Symbol: ...
def get_dynamic_symbol(self, symbol_name: str) -> Symbol | None: ...
def has_symtab_symbol(self, symbol_name: str) -> bool: ...
def get_symtab_symbol(self, symbol_name: str) -> Symbol: ...
def get_symtab_symbol(self, symbol_name: str) -> Symbol | None: ...
def get_strings(self, min_size: int = 5) -> list[str]: ...
@@ -829,13 +836,13 @@ class Binary(lief.Binary):
def export_symbol(self, symbol_name: str, value: int = 0) -> Symbol: ...
@overload
def get_relocation(self, symbol_name: str) -> Relocation: ...
def get_relocation(self, symbol_name: str) -> Relocation | None: ...
@overload
def get_relocation(self, symbol: Symbol) -> Relocation: ...
def get_relocation(self, symbol: Symbol) -> Relocation | None: ...
@overload
def get_relocation(self, address: int) -> Relocation: ...
def get_relocation(self, address: int) -> Relocation | None: ...
@property
def dtor_functions(self) -> list[lief.Function]: ...
@@ -861,7 +868,7 @@ class Binary(lief.Binary):
def get_relocated_dynamic_array(self, array_tag: DynamicEntry.TAG) -> list[int]: ...
def find_version_requirement(self, libname: str) -> SymbolVersionRequirement: ...
def find_version_requirement(self, libname: str) -> SymbolVersionRequirement | None: ...
def remove_version_requirement(self, libname: str) -> bool: ...
@@ -875,7 +882,7 @@ class Binary(lief.Binary):
def __iadd__(self, arg: DynamicEntry, /) -> Binary: ...
@overload
def __iadd__(self, arg: Note, /) -> Binary: ...
def __iadd__(self, arg: Note, /) -> Binary | None: ...
@overload
def __isub__(self, arg: DynamicEntry, /) -> Binary: ...
@@ -884,22 +891,22 @@ class Binary(lief.Binary):
def __isub__(self, arg: DynamicEntry.TAG, /) -> Binary: ...
@overload
def __isub__(self, arg: Note, /) -> Binary: ...
def __isub__(self, arg: Note, /) -> Binary | None: ...
@overload
def __isub__(self, arg: Note.TYPE, /) -> Binary: ...
@overload
def __getitem__(self, arg: Segment.TYPE, /) -> Segment: ...
def __getitem__(self, arg: Segment.TYPE, /) -> Segment | None: ...
@overload
def __getitem__(self, arg: Note.TYPE, /) -> Note: ...
def __getitem__(self, arg: Note.TYPE, /) -> Note | None: ...
@overload
def __getitem__(self, arg: DynamicEntry.TAG, /) -> DynamicEntry: ...
def __getitem__(self, arg: DynamicEntry.TAG, /) -> DynamicEntry | None: ...
@overload
def __getitem__(self, arg: Section.TYPE, /) -> Section: ...
def __getitem__(self, arg: Section.TYPE, /) -> Section | None: ...
@overload
def __contains__(self, arg: Segment.TYPE, /) -> bool: ...
@@ -1783,10 +1790,10 @@ class Symbol(lief.Symbol):
def has_version(self) -> bool: ...
@property
def symbol_version(self) -> SymbolVersion: ...
def symbol_version(self) -> SymbolVersion | None: ...
@property
def section(self) -> Section: ...
def section(self) -> Section | None: ...
@property
def is_static(self) -> bool: ...
@@ -4132,16 +4139,16 @@ class Relocation(lief.Relocation):
@property
def has_symbol(self) -> bool: ...
symbol: Symbol
symbol: Symbol | None
@property
def has_section(self) -> bool: ...
@property
def section(self) -> Section: ...
def section(self) -> Section | None: ...
@property
def symbol_table(self) -> Section: ...
def symbol_table(self) -> Section | None: ...
@property
def is_rela(self) -> bool: ...
@@ -4222,7 +4229,7 @@ class SymbolVersionRequirement(lief.Object):
def add_auxiliary_requirement(self, arg: SymbolVersionAuxRequirement, /) -> SymbolVersionAuxRequirement: ...
def find_aux(self, name: str) -> SymbolVersionAuxRequirement: ...
def find_aux(self, name: str) -> SymbolVersionAuxRequirement | None: ...
@overload
def remove_aux_requirement(self, name: str) -> bool: ...
@@ -5399,7 +5406,7 @@ class CoreFile(Note):
def __getitem__(self, arg: int, /) -> CoreFile.entry_t: ...
@overload
def __getitem__(self, arg: slice, /) -> CoreFile.files_t: ...
def __getitem__(self, arg: slice, /) -> CoreFile.files_t | None: ...
def clear(self) -> None: ...
+80 -70
View File
@@ -2,7 +2,14 @@ from collections.abc import Sequence
import enum
import io
import os
from typing import Iterator, Optional, Union, overload
from typing import (
ClassVar,
Final,
Iterator,
Optional,
Union,
overload
)
import lief.MachO
@@ -261,9 +268,9 @@ class ParserConfig:
def full_dyldinfo(self, flag: bool) -> ParserConfig: ...
deep: ParserConfig = ...
deep: ClassVar[Final[ParserConfig]] = ...
quick: ParserConfig = ...
quick: ClassVar[Final[ParserConfig]] = ...
def parse_from_memory(address: int, config: ParserConfig = ...) -> Optional[FatBinary]: ...
@@ -630,10 +637,13 @@ class FatBinary:
def __next__(self) -> Binary: ...
@staticmethod
def create(binaries: Sequence[Optional[Binary]]) -> Optional[FatBinary]: ...
@property
def size(self) -> int: ...
def at(self, index: int) -> Binary: ...
def at(self, index: int) -> Binary | None: ...
def take(self, cpu: Header.CPU_TYPE) -> Optional[Binary]: ...
@@ -641,15 +651,15 @@ class FatBinary:
def raw(self) -> list[int]: ...
def get(self, arg: Header.CPU_TYPE, /) -> Binary: ...
def get(self, arg: Header.CPU_TYPE, /) -> Binary | None: ...
def __len__(self) -> int: ...
@overload
def __getitem__(self, arg: int, /) -> Binary: ...
def __getitem__(self, arg: int, /) -> Binary | None: ...
@overload
def __getitem__(self, arg: Header.CPU_TYPE, /) -> Binary: ...
def __getitem__(self, arg: Header.CPU_TYPE, /) -> Binary | None: ...
def __iter__(self) -> FatBinary.it_binaries: ...
@@ -771,7 +781,7 @@ class Binary(lief.Binary):
def has_symbol(self, name: str) -> bool: ...
def get_symbol(self, name: str) -> Symbol: ...
def get_symbol(self, name: str) -> Symbol | None: ...
@property
def imported_symbols(self) -> Binary.it_filter_symbols: ...
@@ -803,13 +813,13 @@ class Binary(lief.Binary):
@property
def fat_offset(self) -> int: ...
def section_from_offset(self, arg: int, /) -> Section: ...
def section_from_offset(self, arg: int, /) -> Section | None: ...
def section_from_virtual_address(self, arg: int, /) -> Section: ...
def section_from_virtual_address(self, arg: int, /) -> Section | None: ...
def segment_from_offset(self, arg: int, /) -> SegmentCommand: ...
def segment_from_offset(self, arg: int, /) -> SegmentCommand | None: ...
def segment_from_virtual_address(self, arg: int, /) -> SegmentCommand: ...
def segment_from_virtual_address(self, arg: int, /) -> SegmentCommand | None: ...
@property
def has_entrypoint(self) -> bool: ...
@@ -818,61 +828,61 @@ class Binary(lief.Binary):
def has_uuid(self) -> bool: ...
@property
def uuid(self) -> UUIDCommand: ...
def uuid(self) -> UUIDCommand | None: ...
@property
def has_main_command(self) -> bool: ...
@property
def main_command(self) -> MainCommand: ...
def main_command(self) -> MainCommand | None: ...
@property
def has_dylinker(self) -> bool: ...
@property
def dylinker(self) -> DylinkerCommand: ...
def dylinker(self) -> DylinkerCommand | None: ...
@property
def has_dyld_info(self) -> bool: ...
@property
def dyld_info(self) -> DyldInfo: ...
def dyld_info(self) -> DyldInfo | None: ...
@property
def has_function_starts(self) -> bool: ...
@property
def function_starts(self) -> FunctionStarts: ...
def function_starts(self) -> FunctionStarts | None: ...
@property
def has_source_version(self) -> bool: ...
@property
def source_version(self) -> SourceVersion: ...
def source_version(self) -> SourceVersion | None: ...
@property
def has_version_min(self) -> bool: ...
@property
def version_min(self) -> VersionMin: ...
def version_min(self) -> VersionMin | None: ...
@property
def has_routine_command(self) -> bool: ...
@property
def routine_command(self) -> Routine: ...
def routine_command(self) -> Routine | None: ...
@property
def has_thread_command(self) -> bool: ...
@property
def thread_command(self) -> ThreadCommand: ...
def thread_command(self) -> ThreadCommand | None: ...
@property
def has_rpath(self) -> bool: ...
@property
def rpath(self) -> RPathCommand: ...
def rpath(self) -> RPathCommand | None: ...
@property
def rpaths(self) -> Binary.it_rpaths: ...
@@ -881,37 +891,37 @@ class Binary(lief.Binary):
def has_symbol_command(self) -> bool: ...
@property
def symbol_command(self) -> SymbolCommand: ...
def symbol_command(self) -> SymbolCommand | None: ...
@property
def has_dynamic_symbol_command(self) -> bool: ...
@property
def dynamic_symbol_command(self) -> DynamicSymbolCommand: ...
def dynamic_symbol_command(self) -> DynamicSymbolCommand | None: ...
@property
def has_code_signature(self) -> bool: ...
@property
def code_signature(self) -> CodeSignature: ...
def code_signature(self) -> CodeSignature | None: ...
@property
def has_code_signature_dir(self) -> bool: ...
@property
def code_signature_dir(self) -> CodeSignatureDir: ...
def code_signature_dir(self) -> CodeSignatureDir | None: ...
@property
def has_data_in_code(self) -> bool: ...
@property
def data_in_code(self) -> DataInCode: ...
def data_in_code(self) -> DataInCode | None: ...
@property
def has_segment_split_info(self) -> bool: ...
@property
def segment_split_info(self) -> SegmentSplitInfo: ...
def segment_split_info(self) -> SegmentSplitInfo | None: ...
@property
def subclients(self) -> Binary.it_sub_clients: ...
@@ -923,19 +933,19 @@ class Binary(lief.Binary):
def has_sub_framework(self) -> bool: ...
@property
def sub_framework(self) -> SubFramework: ...
def sub_framework(self) -> SubFramework | None: ...
@property
def has_dyld_environment(self) -> bool: ...
@property
def dyld_environment(self) -> DyldEnvironment: ...
def dyld_environment(self) -> DyldEnvironment | None: ...
@property
def has_encryption_info(self) -> bool: ...
@property
def encryption_info(self) -> EncryptionInfo: ...
def encryption_info(self) -> EncryptionInfo | None: ...
@property
def has_build_version(self) -> bool: ...
@@ -950,63 +960,63 @@ class Binary(lief.Binary):
def is_macos(self) -> bool: ...
@property
def build_version(self) -> BuildVersion: ...
def build_version(self) -> BuildVersion | None: ...
@property
def has_dyld_chained_fixups(self) -> bool: ...
@property
def dyld_chained_fixups(self) -> DyldChainedFixups: ...
def dyld_chained_fixups(self) -> DyldChainedFixups | None: ...
@property
def has_dyld_exports_trie(self) -> bool: ...
@property
def dyld_exports_trie(self) -> DyldExportsTrie: ...
def dyld_exports_trie(self) -> DyldExportsTrie | None: ...
@property
def has_two_level_hints(self) -> bool: ...
@property
def two_level_hints(self) -> TwoLevelHints: ...
def two_level_hints(self) -> TwoLevelHints | None: ...
@property
def has_linker_opt_hint(self) -> bool: ...
@property
def linker_opt_hint(self) -> LinkerOptHint: ...
def linker_opt_hint(self) -> LinkerOptHint | None: ...
@property
def has_atom_info(self) -> bool: ...
@property
def atom_info(self) -> AtomInfo: ...
def atom_info(self) -> AtomInfo | None: ...
@property
def has_function_variants(self) -> bool: ...
@property
def function_variants(self) -> FunctionVariants: ...
def function_variants(self) -> FunctionVariants | None: ...
@property
def has_function_variant_fixups(self) -> bool: ...
@property
def function_variant_fixups(self) -> FunctionVariants: ...
def function_variant_fixups(self) -> FunctionVariants | None: ...
def virtual_address_to_offset(self, virtual_address: int) -> Union[int, lief.lief_errors]: ...
def has_section(self, name: str) -> bool: ...
@overload
def get_section(self, name: str) -> Section: ...
def get_section(self, name: str) -> Section | None: ...
@overload
def get_section(self, segname: str, secname: str) -> Section: ...
def get_section(self, segname: str, secname: str) -> Section | None: ...
def has_segment(self, name: str) -> bool: ...
def get_segment(self, name: str) -> SegmentCommand: ...
def get_segment(self, name: str) -> SegmentCommand | None: ...
@property
def va_ranges(self) -> Binary.range_t: ...
@@ -1029,16 +1039,16 @@ class Binary(lief.Binary):
def write_to_bytes(self) -> bytes: ...
@overload
def add(self, dylib_command: DylibCommand) -> LoadCommand: ...
def add(self, dylib_command: DylibCommand) -> LoadCommand | None: ...
@overload
def add(self, segment: SegmentCommand) -> LoadCommand: ...
def add(self, segment: SegmentCommand) -> LoadCommand | None: ...
@overload
def add(self, load_command: LoadCommand) -> LoadCommand: ...
def add(self, load_command: LoadCommand) -> LoadCommand | None: ...
@overload
def add(self, load_command: LoadCommand, index: int) -> LoadCommand: ...
def add(self, load_command: LoadCommand, index: int) -> LoadCommand | None: ...
@overload
def remove(self, load_command: LoadCommand) -> bool: ...
@@ -1076,18 +1086,18 @@ class Binary(lief.Binary):
def extend_segment(self, segment_command: SegmentCommand, size: int) -> bool: ...
@overload
def add_section(self, segment: SegmentCommand, section: Section) -> Section: ...
def add_section(self, segment: SegmentCommand, section: Section) -> Section | None: ...
@overload
def add_section(self, section: Section) -> Section: ...
def add_section(self, section: Section) -> Section | None: ...
def find_library(self, name: str) -> DylibCommand: ...
def find_library(self, name: str) -> DylibCommand | None: ...
def extend_section(self, section: Section, size: int) -> bool: ...
def add_library(self, library_name: str) -> LoadCommand: ...
def add_library(self, library_name: str) -> LoadCommand | None: ...
def get(self, type: LoadCommand.TYPE) -> LoadCommand: ...
def get(self, type: LoadCommand.TYPE) -> LoadCommand | None: ...
def has(self, type: LoadCommand.TYPE) -> bool: ...
@@ -1101,9 +1111,9 @@ class Binary(lief.Binary):
def shift_linkedit(self, value: int) -> Union[lief.ok_t, lief.lief_errors]: ...
def add_exported_function(self, address: int, name: str) -> ExportInfo: ...
def add_exported_function(self, address: int, name: str) -> ExportInfo | None: ...
def add_local_symbol(self, address: int, name: str) -> Symbol: ...
def add_local_symbol(self, address: int, name: str) -> Symbol | None: ...
@property
def bindings(self) -> Iterator[BindingInfo]: ...
@@ -1129,7 +1139,7 @@ class Binary(lief.Binary):
@property
def has_notes(self) -> bool: ...
def __getitem__(self, arg: LoadCommand.TYPE, /) -> LoadCommand: ...
def __getitem__(self, arg: LoadCommand.TYPE, /) -> LoadCommand | None: ...
def __contains__(self, arg: LoadCommand.TYPE, /) -> bool: ...
@@ -1599,7 +1609,7 @@ class SegmentCommand(LoadCommand):
def add_section(self, section: Section) -> Section: ...
def get_section(self, name: str) -> Section: ...
def get_section(self, name: str) -> Section | None: ...
def __str__(self) -> str: ...
@@ -1734,7 +1744,7 @@ class Section(lief.Section):
def flags_list(self) -> list[Section.FLAGS]: ...
@property
def segment(self) -> SegmentCommand: ...
def segment(self) -> SegmentCommand | None: ...
segment_name: str
@@ -2047,7 +2057,7 @@ class DyldChainedFixups(LoadCommand):
def page_count(self) -> int: ...
@property
def segment(self) -> SegmentCommand: ...
def segment(self) -> SegmentCommand | None: ...
def __str__(self) -> str: ...
@@ -2250,16 +2260,16 @@ class Symbol(lief.Symbol):
def origin(self) -> Symbol.ORIGIN: ...
@property
def export_info(self) -> ExportInfo: ...
def export_info(self) -> ExportInfo | None: ...
@property
def has_binding_info(self) -> bool: ...
@property
def binding_info(self) -> BindingInfo: ...
def binding_info(self) -> BindingInfo | None: ...
@property
def library(self) -> DylibCommand: ...
def library(self) -> DylibCommand | None: ...
@property
def is_external(self) -> bool: ...
@@ -2301,13 +2311,13 @@ class Relocation(lief.Relocation):
def has_symbol(self) -> bool: ...
@property
def symbol(self) -> Symbol: ...
def symbol(self) -> Symbol | None: ...
@property
def has_section(self) -> bool: ...
@property
def section(self) -> Section: ...
def section(self) -> Section | None: ...
@property
def origin(self) -> Relocation.ORIGIN: ...
@@ -2316,7 +2326,7 @@ class Relocation(lief.Relocation):
def has_segment(self) -> bool: ...
@property
def segment(self) -> SegmentCommand: ...
def segment(self) -> SegmentCommand | None: ...
def __str__(self) -> str: ...
@@ -2359,19 +2369,19 @@ class BindingInfo(lief.Object):
def has_library(self) -> bool: ...
@property
def library(self) -> DylibCommand: ...
def library(self) -> DylibCommand | None: ...
@property
def has_segment(self) -> bool: ...
@property
def segment(self) -> SegmentCommand: ...
def segment(self) -> SegmentCommand | None: ...
@property
def has_symbol(self) -> bool: ...
@property
def symbol(self) -> Symbol: ...
def symbol(self) -> Symbol | None: ...
def __str__(self) -> str: ...
@@ -2468,10 +2478,10 @@ class ExportInfo(lief.Object):
address: int
@property
def alias(self) -> Symbol: ...
def alias(self) -> Symbol | None: ...
@property
def alias_library(self) -> DylibCommand: ...
def alias_library(self) -> DylibCommand | None: ...
@property
def has_symbol(self) -> bool: ...
@@ -2479,7 +2489,7 @@ class ExportInfo(lief.Object):
def has(self, flag: ExportInfo.FLAGS) -> bool: ...
@property
def symbol(self) -> Symbol: ...
def symbol(self) -> Symbol | None: ...
def __str__(self) -> str: ...
@@ -2994,7 +3004,7 @@ class FilesetCommand(LoadCommand):
file_offset: int
@property
def binary(self) -> Binary: ...
def binary(self) -> Binary | None: ...
def __str__(self) -> str: ...
+5 -5
View File
@@ -162,10 +162,10 @@ class Binary(lief.ELF.Binary):
def has_class(self, arg: str, /) -> bool: ...
@overload
def get_class(self, class_name: str) -> Class: ...
def get_class(self, class_name: str) -> Class | None: ...
@overload
def get_class(self, class_index: int) -> Class: ...
def get_class(self, class_index: int) -> Class | None: ...
@property
def dex2dex_json_info(self) -> str: ...
@@ -275,7 +275,7 @@ class DexFile(lief.Object):
def has_dex_file(self) -> bool: ...
@property
def dex_file(self) -> lief.DEX.File: ...
def dex_file(self) -> lief.DEX.File | None: ...
def __str__(self) -> str: ...
@@ -332,10 +332,10 @@ class Method(lief.Object):
def name(self) -> str: ...
@property
def oat_class(self) -> Class: ...
def oat_class(self) -> Class | None: ...
@property
def dex_method(self) -> lief.DEX.Method: ...
def dex_method(self) -> lief.DEX.Method | None: ...
@property
def has_dex_method(self) -> bool: ...
+72 -65
View File
@@ -3,7 +3,14 @@ import enum
import io
import lief.PE
import os
from typing import Iterator, Optional, Union, overload
from typing import (
ClassVar,
Final,
Iterator,
Optional,
Union,
overload
)
from . import (
unwind_aarch64 as unwind_aarch64,
@@ -94,9 +101,9 @@ class ParserConfig:
parse_arm64x_binary: bool
default_conf: ParserConfig = ...
default_conf: ClassVar[Final[ParserConfig]] = ...
all: ParserConfig = ...
all: ClassVar[Final[ParserConfig]] = ...
def __str__(self) -> str: ...
@@ -552,7 +559,7 @@ class DataDirectory(lief.Object):
size: int
@property
def section(self) -> Section: ...
def section(self) -> Section | None: ...
@property
def content(self) -> memoryview: ...
@@ -682,7 +689,7 @@ class Section(lief.Section):
def is_discardable(self) -> bool: ...
@property
def coff_string(self) -> lief.COFF.String: ...
def coff_string(self) -> lief.COFF.String | None: ...
@property
def padding(self) -> bytes: ...
@@ -824,12 +831,12 @@ class Export(lief.Object):
def ord_addr_table_rva(self) -> int: ...
@overload
def find_entry(self, name: str) -> ExportEntry: ...
def find_entry(self, name: str) -> ExportEntry | None: ...
@overload
def find_entry(self, ordinal: int) -> ExportEntry: ...
def find_entry(self, ordinal: int) -> ExportEntry | None: ...
def find_entry_at(self, rva_addr: int) -> ExportEntry: ...
def find_entry_at(self, rva_addr: int) -> ExportEntry | None: ...
@overload
def add_entry(self, exp: ExportEntry) -> ExportEntry: ...
@@ -912,10 +919,10 @@ class TLS(lief.Object):
def has_data_directory(self) -> bool: ...
@property
def directory(self) -> DataDirectory: ...
def directory(self) -> DataDirectory | None: ...
@property
def section(self) -> Section: ...
def section(self) -> Section | None: ...
def add_callback(self, addr: int) -> TLS: ...
@@ -951,10 +958,10 @@ class Import(lief.Object):
name: Union[str, bytes]
@property
def directory(self) -> DataDirectory: ...
def directory(self) -> DataDirectory | None: ...
@property
def iat_directory(self) -> DataDirectory: ...
def iat_directory(self) -> DataDirectory | None: ...
import_address_table_rva: int
@@ -968,7 +975,7 @@ class Import(lief.Object):
@overload
def add_entry(self, function_name: str) -> ImportEntry: ...
def get_entry(self, function_name: str) -> ImportEntry: ...
def get_entry(self, function_name: str) -> ImportEntry | None: ...
@property
def name_rva(self) -> int: ...
@@ -1229,7 +1236,7 @@ class RuntimeFunctionX64(ExceptionInfo):
def size(self) -> int: ...
@property
def unwind_info(self) -> RuntimeFunctionX64.unwind_info_t: ...
def unwind_info(self) -> RuntimeFunctionX64.unwind_info_t | None: ...
class RuntimeFunctionAArch64(ExceptionInfo):
class PACKED_FLAGS(enum.Enum):
@@ -1319,7 +1326,7 @@ class Debug(lief.Object):
pointerto_rawdata: int
@property
def section(self) -> Section: ...
def section(self) -> Section | None: ...
@property
def payload(self) -> memoryview: ...
@@ -1690,7 +1697,7 @@ class ResourcesManager(lief.Object):
@property
def accelerator(self) -> ResourcesManager.it_const_accelerators: ...
def get_node_type(self, type: ResourcesManager.TYPE) -> ResourceNode: ...
def get_node_type(self, type: ResourcesManager.TYPE) -> ResourceNode | None: ...
def print(self, max_depth: int = 0) -> str: ...
@@ -1921,10 +1928,10 @@ class ResourceVersion(lief.Object):
def file_info(self) -> ResourceVersion.fixed_file_info_t: ...
@property
def string_file_info(self) -> ResourceStringFileInfo: ...
def string_file_info(self) -> ResourceStringFileInfo | None: ...
@property
def var_file_info(self) -> ResourceVarFileInfo: ...
def var_file_info(self) -> ResourceVarFileInfo | None: ...
def __str__(self) -> str: ...
@@ -3097,19 +3104,19 @@ class Signature(lief.Object):
@property
def signers(self) -> Signature.it_const_signers_t: ...
def find_crt(self, serialno: Sequence[int]) -> x509: ...
def find_crt(self, serialno: Sequence[int]) -> x509 | None: ...
@overload
def find_crt_subject(self, subject: str) -> x509: ...
def find_crt_subject(self, subject: str) -> x509 | None: ...
@overload
def find_crt_subject(self, subject: str, serialno: Sequence[int]) -> x509: ...
def find_crt_subject(self, subject: str, serialno: Sequence[int]) -> x509 | None: ...
@overload
def find_crt_issuer(self, issuer: str) -> x509: ...
def find_crt_issuer(self, issuer: str) -> x509 | None: ...
@overload
def find_crt_issuer(self, issuer: str, serialno: Sequence[int]) -> x509: ...
def find_crt_issuer(self, issuer: str, serialno: Sequence[int]) -> x509 | None: ...
def check(self, checks: Signature.VERIFICATION_CHECKS = Signature.VERIFICATION_CHECKS.DEFAULT) -> Signature.VERIFICATION_FLAGS: ...
@@ -3387,14 +3394,14 @@ class SignerInfo(lief.Object):
@property
def unauthenticated_attributes(self) -> SignerInfo.it_const_attributes_t: ...
def get_attribute(self, type: Attribute.TYPE) -> Attribute: ...
def get_attribute(self, type: Attribute.TYPE) -> Attribute | None: ...
def get_auth_attribute(self, type: Attribute.TYPE) -> Attribute: ...
def get_auth_attribute(self, type: Attribute.TYPE) -> Attribute | None: ...
def get_unauth_attribute(self, type: Attribute.TYPE) -> Attribute: ...
def get_unauth_attribute(self, type: Attribute.TYPE) -> Attribute | None: ...
@property
def cert(self) -> x509: ...
def cert(self) -> x509 | None: ...
def __str__(self) -> str: ...
@@ -3734,7 +3741,7 @@ class DynamicRelocation:
symbol: int
@property
def fixups(self) -> DynamicFixup: ...
def fixups(self) -> DynamicFixup | None: ...
def __str__(self) -> str: ...
@@ -3817,7 +3824,7 @@ class DynamicFixupARM64X(DynamicFixup):
def relocations(self) -> DynamicFixupARM64X.it_relocations: ...
class DynamicFixupControlTransfer(DynamicFixup):
NO_IAT_INDEX: int = ...
NO_IAT_INDEX: ClassVar[Final[int]] = ...
class it_relocations:
def __getitem__(self, arg: int, /) -> DynamicFixupControlTransfer.reloc_entry_t: ...
@@ -3841,7 +3848,7 @@ class DynamicFixupControlTransfer(DynamicFixup):
def relocations(self) -> DynamicFixupControlTransfer.it_relocations: ...
class DynamicFixupARM64Kernel(DynamicFixup):
NO_IAT_INDEX: int = ...
NO_IAT_INDEX: ClassVar[Final[int]] = ...
class IMPORT_TYPE(enum.Enum):
STATIC = 0
@@ -3962,10 +3969,10 @@ class FunctionOverride(DynamicFixup):
def bdd_info(self) -> FunctionOverride.it_bdd_info: ...
@overload
def find_bdd_info(self, arg: int, /) -> FunctionOverride.image_bdd_info_t: ...
def find_bdd_info(self, arg: int, /) -> FunctionOverride.image_bdd_info_t | None: ...
@overload
def find_bdd_info(self, arg: FunctionOverrideInfo, /) -> FunctionOverride.image_bdd_info_t: ...
def find_bdd_info(self, arg: FunctionOverrideInfo, /) -> FunctionOverride.image_bdd_info_t | None: ...
class EnclaveImport:
class TYPE(enum.Enum):
@@ -4219,7 +4226,7 @@ class LoadConfiguration(lief.Object):
@property
def guard_cf_flags_list(self) -> list[LoadConfiguration.IMAGE_GUARD]: ...
code_integrity: CodeIntegrity
code_integrity: CodeIntegrity | None
guard_address_taken_iat_entry_table: int | None
@@ -4243,7 +4250,7 @@ class LoadConfiguration(lief.Object):
def chpe_metadata_pointer(self) -> int | None: ...
@property
def chpe_metadata(self) -> CHPEMetadata: ...
def chpe_metadata(self) -> CHPEMetadata | None: ...
guard_rf_failure_routine: int | None
@@ -4267,12 +4274,12 @@ class LoadConfiguration(lief.Object):
enclave_configuration_ptr: int | None
@property
def enclave_config(self) -> EnclaveConfiguration: ...
def enclave_config(self) -> EnclaveConfiguration | None: ...
volatile_metadata_pointer: int | None
@property
def volatile_metadata(self) -> VolatileMetadata: ...
def volatile_metadata(self) -> VolatileMetadata | None: ...
guard_eh_continuation_table: int | None
@@ -4412,15 +4419,15 @@ class Binary(lief.Binary):
def va_to_offset(self, va_address: int) -> int: ...
def section_from_offset(self, offset: int) -> Section: ...
def section_from_offset(self, offset: int) -> Section | None: ...
def section_from_rva(self, rva: int) -> Section: ...
def section_from_rva(self, rva: int) -> Section | None: ...
tls: TLS
tls: TLS | None
def remove_tls(self) -> None: ...
rich_header: RichHeader
rich_header: RichHeader | None
@property
def has_rich_header(self) -> bool: ...
@@ -4487,28 +4494,28 @@ class Binary(lief.Binary):
@property
def debug(self) -> Binary.it_debug: ...
def add_debug_info(self, entry: Debug) -> Debug: ...
def add_debug_info(self, entry: Debug) -> Debug | None: ...
def remove_debug(self, entry: Debug) -> bool: ...
def clear_debug(self) -> bool: ...
@property
def codeview_pdb(self) -> CodeViewPDB: ...
def codeview_pdb(self) -> CodeViewPDB | None: ...
@property
def load_configuration(self) -> LoadConfiguration: ...
def load_configuration(self) -> LoadConfiguration | None: ...
def get_export(self) -> Export: ...
def get_export(self) -> Export | None: ...
def set_export(self, arg: Export, /) -> Export: ...
@property
def symbols(self) -> Binary.it_symbols: ... # type: ignore
def get_section(self, section_name: str) -> Section: ...
def get_section(self, section_name: str) -> Section | None: ...
def add_section(self, section: Section) -> Section: ...
def add_section(self, section: Section) -> Section | None: ...
@property
def relocations(self) -> DynamicFixupGeneric.it_relocations: ... # type: ignore
@@ -4522,14 +4529,14 @@ class Binary(lief.Binary):
@property
def data_directories(self) -> Binary.it_data_directories: ...
def data_directory(self, type: DataDirectory.TYPES) -> DataDirectory: ...
def data_directory(self, type: DataDirectory.TYPES) -> DataDirectory | None: ...
@property
def imports(self) -> Binary.it_imports: ...
def has_import(self, import_name: str) -> bool: ...
def get_import(self, import_name: str) -> Import: ...
def get_import(self, import_name: str) -> Import | None: ...
@property
def delay_imports(self) -> Binary.it_delay_imports: ...
@@ -4539,13 +4546,13 @@ class Binary(lief.Binary):
def has_delay_import(self, import_name: str) -> bool: ...
def get_delay_import(self, import_name: str) -> DelayImport: ...
def get_delay_import(self, import_name: str) -> DelayImport | None: ...
@property
def resources_manager(self) -> Union[ResourcesManager, lief.lief_errors]: ...
@property
def resources(self) -> ResourceNode: ...
def resources(self) -> ResourceNode | None: ...
@property
def overlay(self) -> memoryview: ...
@@ -4561,43 +4568,43 @@ class Binary(lief.Binary):
def remove_all_imports(self) -> None: ...
def set_resources(self, new_tree: ResourceNode) -> ResourceNode: ...
def set_resources(self, new_tree: ResourceNode) -> ResourceNode | None: ...
@property
def exceptions(self) -> Binary.it_exceptions: ...
@property
def export_dir(self) -> DataDirectory: ...
def export_dir(self) -> DataDirectory | None: ...
@property
def import_dir(self) -> DataDirectory: ...
def import_dir(self) -> DataDirectory | None: ...
@property
def rsrc_dir(self) -> DataDirectory: ...
def rsrc_dir(self) -> DataDirectory | None: ...
@property
def exceptions_dir(self) -> DataDirectory: ...
def exceptions_dir(self) -> DataDirectory | None: ...
@property
def cert_dir(self) -> DataDirectory: ...
def cert_dir(self) -> DataDirectory | None: ...
@property
def relocation_dir(self) -> DataDirectory: ...
def relocation_dir(self) -> DataDirectory | None: ...
@property
def debug_dir(self) -> DataDirectory: ...
def debug_dir(self) -> DataDirectory | None: ...
@property
def tls_dir(self) -> DataDirectory: ...
def tls_dir(self) -> DataDirectory | None: ...
@property
def load_config_dir(self) -> DataDirectory: ...
def load_config_dir(self) -> DataDirectory | None: ...
@property
def iat_dir(self) -> DataDirectory: ...
def iat_dir(self) -> DataDirectory | None: ...
@property
def delay_dir(self) -> DataDirectory: ...
def delay_dir(self) -> DataDirectory | None: ...
@property
def is_arm64ec(self) -> bool: ...
@@ -4622,12 +4629,12 @@ class Binary(lief.Binary):
@property
def coff_string_table(self) -> Binary.it_strings_table: ...
def find_coff_string(self, offset: int) -> lief.COFF.String: ...
def find_coff_string(self, offset: int) -> lief.COFF.String | None: ...
def find_exception_at(self, rva: int) -> ExceptionInfo: ...
def find_exception_at(self, rva: int) -> ExceptionInfo | None: ...
@property
def nested_pe_binary(self) -> Binary: ...
def nested_pe_binary(self) -> Binary | None: ...
def __str__(self) -> str: ...
+3 -3
View File
@@ -583,7 +583,7 @@ class Binary(Object):
def __next__(self) -> Relocation: ...
@property
def debug_info(self) -> DebugInfo: ...
def debug_info(self) -> DebugInfo | None: ...
@property
def format(self) -> Binary.FORMATS: ...
@@ -622,7 +622,7 @@ class Binary(Object):
def has_symbol(self, symbol_name: str) -> bool: ...
def get_symbol(self, symbol_name: str) -> Symbol: ...
def get_symbol(self, symbol_name: str) -> Symbol | None: ...
def get_function_address(self, function_name: str) -> Union[int, lief_errors]: ...
@@ -671,7 +671,7 @@ class Binary(Object):
@property
def page_size(self) -> int: ...
def load_debug_info(self, path: Union[str | os.PathLike]) -> DebugInfo: ...
def load_debug_info(self, path: Union[str | os.PathLike]) -> DebugInfo | None: ...
@property
def virtual_size(self) -> int: ...
+17 -17
View File
@@ -49,11 +49,11 @@ class Packed(ClassLike):
class Pointer(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
class Const(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
class Base(lief.dwarf.Type):
class ENCODING(enum.Enum):
@@ -79,7 +79,7 @@ class Base(lief.dwarf.Type):
class Array(lief.dwarf.Type):
class size_info_t:
@property
def type(self) -> lief.dwarf.Type: ...
def type(self) -> lief.dwarf.Type | None: ...
@property
def name(self) -> str: ...
@@ -88,18 +88,18 @@ class Array(lief.dwarf.Type):
def size(self) -> int: ...
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
@property
def size_info(self) -> Array.size_info_t: ...
class Typedef(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
class Atomic(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
class Coarray(lief.dwarf.Type):
pass
@@ -119,7 +119,7 @@ class Enum(lief.dwarf.Type):
def entries(self) -> list[Enum.Entry]: ...
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
def find_entry(self, value: int) -> Enum.Entry | None: ...
@@ -128,37 +128,37 @@ class File(lief.dwarf.Type):
class Immutable(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
class Interface(lief.dwarf.Type):
pass
class PointerToMember(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
@property
def containing_type(self) -> Optional[lief.dwarf.Type]: ...
class RValueReference(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
class Reference(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
class Restrict(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
class SetTy(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
class Shared(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
class StringTy(lief.dwarf.Type):
pass
@@ -175,12 +175,12 @@ class TemplateAlias(lief.dwarf.Type):
def parameters(self) -> list[Optional[lief.dwarf.Parameter]]: ...
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
class Thrown(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
class Volatile(lief.dwarf.Type):
@property
def underlying_type(self) -> lief.dwarf.Type: ...
def underlying_type(self) -> lief.dwarf.Type | None: ...
+1 -1
View File
@@ -216,7 +216,7 @@ class Enum(lief.pdb.Type):
def entries(self) -> list[Enum.Entry]: ...
@property
def underlying_type(self) -> lief.pdb.Type: ...
def underlying_type(self) -> lief.pdb.Type | None: ...
def find_entry(self, value: int) -> Enum.Entry | None: ...