diff options
| author | Josh Ferrell <josh@vector35.com> | 2024-10-23 12:39:33 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2024-10-23 17:37:33 -0400 |
| commit | bd3d79d51267975a9ff2167bb6731222e9618c27 (patch) | |
| tree | 59c1b71e9958048ac2c77aaddfddc0f8a9b2bb93 /binaryninjaapi.h | |
| parent | 62e450721a5487402522a458e88a93d82e6d3d6f (diff) | |
Add API to bulk add segments, use it in elf view
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 8a217952..884861bb 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -6489,6 +6489,8 @@ namespace BinaryNinja { /*! Add an analysis segment that specifies how data from the raw file is mapped into a virtual address space + Note that the segment added may have different size attributes than requested + \param start Starting virtual address \param length Length within the virtual address space \param dataOffset Data offset in the raw file @@ -6497,6 +6499,14 @@ namespace BinaryNinja { */ void AddAutoSegment(uint64_t start, uint64_t length, uint64_t dataOffset, uint64_t dataLength, uint32_t flags); + /*! Add analysis segments that specify how data from the raw file is mapped into a virtual address space + + \param segments Segments to add to the BinaryView + + Note that the segments added may have different size attributes than requested + */ + void AddAutoSegments(const std::vector<BNSegmentInfo>& segments); + /*! Removes an automatically generated segment from the current segment mapping \warning This action is not persistent across saving of a BNDB and must be re-applied each time a BNDB is loaded. |
