pex.exe.pe
¶
Module Contents¶
- class pex.exe.pe.PE¶
Bases:
object
Subclass of pex.exe module.
This subclass of pex.exe module is intended for providing an implementation of Windows portable executable generator.
- check_pe(data: bytes) bool ¶
Check if data is a Windows portable executable.
- Parameters:
data (bytes) – data to check
- Return bool:
True if data is a Windows portable executable
- pack_pe(arch: pex.arch.types.Arch | str, data: bytes) bytes ¶
Pack data to a Windows portable executable.
- Parameters:
arch (Union[Arch, str]) – architecture to pack for
data (bytes) – data to pack
- Return bytes:
packed Windows portable executable
- Raises:
RuntimeError – with trailing error message