Header menu logo B2R2

FileFormat Module

Provides functions to work with FileFormat.

Functions and values

Function or value Description

FileFormat.isELF fmt

Full Usage: FileFormat.isELF fmt

Parameters:
Returns: bool

Checks whether the given format is ELF.

fmt : FileFormat
Returns: bool

FileFormat.isHex fmt

Full Usage: FileFormat.isHex fmt

Parameters:
Returns: bool

Checks whether the given format is a hexadecimal binary.

fmt : FileFormat
Returns: bool

FileFormat.isMach fmt

Full Usage: FileFormat.isMach fmt

Parameters:
Returns: bool

Checks whether the given format is Mach-O.

fmt : FileFormat
Returns: bool

FileFormat.isPE fmt

Full Usage: FileFormat.isPE fmt

Parameters:
Returns: bool

Checks whether the given format is PE.

fmt : FileFormat
Returns: bool

FileFormat.isPython fmt

Full Usage: FileFormat.isPython fmt

Parameters:
Returns: bool

Checks whether the given format is Python.

fmt : FileFormat
Returns: bool

FileFormat.isRaw fmt

Full Usage: FileFormat.isRaw fmt

Parameters:
Returns: bool

Checks whether the given format is a raw binary.

fmt : FileFormat
Returns: bool

FileFormat.isWasm fmt

Full Usage: FileFormat.isWasm fmt

Parameters:
Returns: bool

Checks whether the given format is Wasm.

fmt : FileFormat
Returns: bool

FileFormat.toString fmt

Full Usage: FileFormat.toString fmt

Parameters:
Returns: string

Transforms a FileFormat into a string. Raises InvalidFileFormatException when the value is not one of the defined cases (e.g., an out-of-range enum value).

fmt : FileFormat
Returns: string

FileFormat.tryParse str

Full Usage: FileFormat.tryParse str

Parameters:
    str : string

Returns: FileFormat option

Tries to transform a string into a FileFormat. The match is case-insensitive.

str : string
Returns: FileFormat option

Type something to start searching.