Overloaded function.
is_pe(file: str) -> bool
Check if the given file is a PE
is_pe(raw: list[int]) -> bool
Check if the given raw data is a PE
Overloaded function.
is_elf(filename: str) -> bool
Check if the given file is an ELF
is_elf(raw: list[int]) -> bool
Check if the given raw data is an ELF
Overloaded function.
is_macho(filename: str) -> bool
Check if the given file is a MachO
(from filename)
is_macho(raw: list[int]) -> bool
Check if the given raw data is a MachO
Overloaded function.
is_oat(binary: lief._lief.ELF.Binary) -> bool
Check if the Binary
given in parameter is an OAT
is_oat(path: str) -> bool
Check if the file given in parameter is an OAT
is_oat(raw: list[int]) -> bool
Check if the raw data given in parameter is an OAT
Overloaded function.
is_dex(path: str) -> bool
Check if the file given in parameter is a DEX
is_dex(raw: list[int]) -> bool
Check if the raw data given in parameter is a DEX
Overloaded function.
is_vdex(path: str) -> bool
Check if the file given in parameter is an VDEX
is_vdex(raw: list[int]) -> bool
Check if the raw data given in parameter is a VDEX
Overloaded function.
is_art(path: str) -> bool
Check if the file given in parameter is an ART
is_art(raw: list[int]) -> bool
Check if the raw data given in parameter is a ART
Disable nanobind warnings about leaked objects. For instance:
nanobind: leaked 45 instances!
nanobind: leaked 25 types!
- leaked type "lief._lief.FORMATS"
- ... skipped remainder
nanobind: leaked 201 functions!
- leaked function ""
- leaked function "export_symbol"
- ... skipped remainder
nanobind: this is likely caused by a reference counting issue in the binding code.