| 25 | |
| 26 | |
| 27 | BNLinearDisassemblyLine LinearDisassemblyLine::GetAPIObject() const |
| 28 | { |
| 29 | BNLinearDisassemblyLine result; |
| 30 | result.type = this->type; |
| 31 | result.function = this->function ? BNNewFunctionReference(this->function->GetObject()) : nullptr; |
| 32 | result.block = this->block ? BNNewBasicBlockReference(this->block->GetObject()) : nullptr; |
| 33 | result.contents = this->contents.GetAPIObject(); |
| 34 | return result; |
| 35 | } |
| 36 | |
| 37 | |
| 38 | LinearDisassemblyLine LinearDisassemblyLine::FromAPIObject(const BNLinearDisassemblyLine* line) |