Header menu logo B2R2

FileFactory Module

Provides low-level functions to create a binary file object. This is used by the BinHandle module internally, and hence, it is recommended to use the BinHandle module instead, in most cases.

Functions and values

Function or value Description

FileFactory.load path bytes fmt isa regFactory baseAddrOpt

Full Usage: FileFactory.load path bytes fmt isa regFactory baseAddrOpt

Parameters:
Returns: IBinFile

Creates a binary file object from the given path and byte array representing the raw content of the file. The path to the binary file.The raw content of the binary file.The file format of the binary file.The target ISA of the binary file.The register factory for the target ISA.An optional base address for the binary file.

path : string
bytes : byte[]
fmt : FileFormat
isa : ISA
regFactory : IRegisterFactory
baseAddrOpt : uint64 option
Returns: IBinFile

FileFactory.loadELF path bytes regFactory baseAddrOpt

Full Usage: FileFactory.loadELF path bytes regFactory baseAddrOpt

Parameters:
    path : string
    bytes : byte[]
    regFactory : IRegisterFactory
    baseAddrOpt : uint64 option

Returns: ELFBinFile

Creates an ELF binary file object.

path : string
bytes : byte[]
regFactory : IRegisterFactory
baseAddrOpt : uint64 option
Returns: ELFBinFile

Type something to start searching.