| 47 | |
| 48 | |
| 49 | void RenderLayer::ApplyToLinearViewObjectCallback( |
| 50 | void* ctxt, |
| 51 | BNLinearViewObject* obj, |
| 52 | BNLinearViewObject* prev, |
| 53 | BNLinearViewObject* next, |
| 54 | BNLinearDisassemblyLine* inLines, |
| 55 | size_t inLineCount, |
| 56 | BNLinearDisassemblyLine** outLines, |
| 57 | size_t* outLineCount |
| 58 | ) |
| 59 | { |
| 60 | RenderLayer* layer = (RenderLayer*)ctxt; |
| 61 | vector<LinearDisassemblyLine> lines = ParseAPIObjectList<LinearDisassemblyLine>(inLines, inLineCount); |
| 62 | |
| 63 | layer->ApplyToLinearViewObject( |
| 64 | new LinearViewObject(BNNewLinearViewObjectReference(obj)), |
| 65 | prev ? new LinearViewObject(BNNewLinearViewObjectReference(prev)) : nullptr, |
| 66 | next ? new LinearViewObject(BNNewLinearViewObjectReference(next)) : nullptr, |
| 67 | lines |
| 68 | ); |
| 69 | |
| 70 | AllocAPIObjectList<LinearDisassemblyLine>(lines, outLines, outLineCount); |
| 71 | } |
| 72 | |
| 73 | |
| 74 | void RenderLayer::FreeLinesCallback(void* ctxt, BNLinearDisassemblyLine* lines, size_t count) |
nothing calls this directly
no test coverage detected