| 131 | |
| 132 | |
| 133 | Ref<LinearViewObject> LinearViewObject::GetChildForIdentifier(const LinearViewObjectIdentifier& id) |
| 134 | { |
| 135 | BNLinearViewObjectIdentifier lvid; |
| 136 | lvid.name = BNAllocString(id.name.c_str()); |
| 137 | lvid.type = id.type; |
| 138 | lvid.start = id.start; |
| 139 | lvid.end = id.end; |
| 140 | BNLinearViewObject* result = BNGetLinearViewObjectChildForIdentifier(m_object, &lvid); |
| 141 | BNFreeString(lvid.name); |
| 142 | if (result) |
| 143 | return new LinearViewObject(result); |
| 144 | return nullptr; |
| 145 | } |
| 146 | |
| 147 | |
| 148 | int LinearViewObject::CompareChildren(LinearViewObject* a, LinearViewObject* b) |