TODO: Delete this function when access semantics are not so screwy.
| 43 | |
| 44 | // TODO: Delete this function when access semantics are not so screwy. |
| 45 | bool IsOffsetReadOnlyData(BinaryView *view, uint64_t offset) |
| 46 | { |
| 47 | // Check to see if the section has default section semantics and let it pass. |
| 48 | for (const auto& section : view->GetSectionsAt(offset)) |
| 49 | { |
| 50 | // TODO: Adding external here is weird but its whatever. This whole function needs to go away anyways. |
| 51 | switch (section->GetSemantics()) |
| 52 | { |
| 53 | case DefaultSectionSemantics: |
| 54 | case ReadOnlyDataSectionSemantics: |
| 55 | case ExternalSectionSemantics: |
| 56 | return true; |
| 57 | default: |
| 58 | return false; |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | return false; |
| 63 | } |
| 64 | |
| 65 | |
| 66 | std::optional<TypeInfo> GetTypeInfo(BinaryView* view, uint64_t address) |
no test coverage detected