| 104 | |
| 105 | |
| 106 | bool 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 | |
| 120 | vector<DisassemblyTextLine> DataRenderer::GetLinesForData(BinaryView* data, uint64_t addr, Type* type, |
no test coverage detected