FormatDetector Module
Provides a function to detect the file format of a binary.
Functions and values
Function or value | Description |
Full Usage:
FormatDetector.identify bytes isa
Parameters:
byte[]
isa : ISA
Returns: FileFormat * ISA
|
Given an array of bytes, identify its binary file format (FileFormat) and its underlying ISA (ISA). For FAT binaries, this function will select an ISA only when there is a match with the given input ISA. Otherwise, this function will raise InvalidISAException.
|