| 99 | |
| 100 | |
| 101 | Ref<BinaryView> DebugProcessViewType::Create(BinaryView* data) |
| 102 | { |
| 103 | try |
| 104 | { |
| 105 | // the null view must be ref-counted, otherwise there will be a memory leak |
| 106 | Ref<DebugNullView> nullView = new DebugNullView(data); |
| 107 | return new DebugProcessView(nullView, data); |
| 108 | } |
| 109 | catch (std::exception& e) |
| 110 | { |
| 111 | LogError("%s<BinaryViewType> failed to create view! '%s'", GetName().c_str(), e.what()); |
| 112 | return nullptr; |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | |
| 117 | Ref<BinaryView> DebugProcessViewType::Parse(BinaryView* data) |
no test coverage detected