MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / IsOffsetReadOnlyData

Function IsOffsetReadOnlyData

plugins/rtti/itanium.cpp:45–63  ·  view source on GitHub ↗

TODO: Delete this function when access semantics are not so screwy.

Source from the content-addressed store, hash-verified

43
44// TODO: Delete this function when access semantics are not so screwy.
45bool 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
66std::optional<TypeInfo> GetTypeInfo(BinaryView* view, uint64_t address)

Callers 1

GetTypeInfoFunction · 0.85

Calls 2

GetSectionsAtMethod · 0.80
GetSemanticsMethod · 0.80

Tested by

no test coverage detected