BinFileOps Module
Provides convenience operations over optional capabilities of IBinFile.
Functions and values
| Function or value |
Description
|
Full Usage:
BinFileOps.getCodeModeMarkers file
Parameters:
IBinFile
Returns: BinCodeModeMarker[]
|
Returns the instruction-set mode markers of the given binary file.
|
Full Usage:
BinFileOps.getCodeSectionPointer file
Parameters:
IBinFile
Returns: BinFilePointer
|
Returns a pointer to the code section of the given binary file.
|
Full Usage:
BinFileOps.getDefaultCodePointer file
Parameters:
IBinFile
Returns: BinFilePointer
|
Returns the default code pointer for disassembling the given binary file.
|
Full Usage:
BinFileOps.getExceptionFrames file
Parameters:
IBinFile
Returns: BinExceptionFrame[]
|
Returns all per-function exception frames of the given binary file.
|
|
|
|
|
|
|
|
Returns the path to the dynamic loader/interpreter requested by the given binary file, if any.
|
|
|
|
|
|
|
Full Usage:
BinFileOps.getSectionPointer file name
Parameters:
IBinFile
name : string
Returns: BinFilePointer
|
Returns a pointer to the section with the given name.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
BinFileOps.sliceByOffset file offset len
Parameters:
IBinFile
offset : int
len : int
Returns: ReadOnlySpan<byte>
|
Slices the given binary file into a span of bytes of the specified length starting from the specified file offset. Raises InvalidAddrReadException when the requested region falls outside the file content.
|
Full Usage:
BinFileOps.tryFindSectionByAddr file addr
Parameters: Returns: Result<BinSection, ErrorCase>
|
Tries to find the section containing the given address.
|
Full Usage:
BinFileOps.tryFindSectionByName file name
Parameters:
IBinFile
name : string
Returns: Result<BinSection, ErrorCase>
|
Tries to find the section whose name matches the given name.
|
Full Usage:
BinFileOps.tryFindSectionByOffset file offset
Parameters:
IBinFile
offset : uint32
Returns: Result<BinSection, ErrorCase>
|
Tries to find the section containing the given file offset.
|
|
|
|
|
|
B2R2