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

Method IsValidForData

datarenderer.cpp:106–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106bool DataRenderer::IsValidForData(BinaryView* data, uint64_t addr, Type* type, vector<pair<Type*, size_t>>& context)
107{
108 BNTypeContext* typeCtx = new BNTypeContext[context.size()];
109 for (size_t i = 0; i < context.size(); i++)
110 {
111 typeCtx[i].type = context[i].first->GetObject();
112 typeCtx[i].offset = context[i].second;
113 }
114 bool result = BNIsValidForData(m_object, data->GetObject(), addr, type->GetObject(), typeCtx, context.size());
115 delete[] typeCtx;
116 return result;
117}
118
119
120vector<DisassemblyTextLine> DataRenderer::GetLinesForData(BinaryView* data, uint64_t addr, Type* type,

Callers 1

Calls 2

sizeMethod · 0.45
GetObjectMethod · 0.45

Tested by

no test coverage detected