| 3043 | |
| 3044 | |
| 3045 | Ref<BinaryView> PEViewType::Parse(BinaryView* data) |
| 3046 | { |
| 3047 | try |
| 3048 | { |
| 3049 | return new PEView(data, true); |
| 3050 | } |
| 3051 | catch (std::exception& e) |
| 3052 | { |
| 3053 | m_logger->LogError("%s<BinaryViewType> failed to create view! '%s'", GetName().c_str(), e.what()); |
| 3054 | return nullptr; |
| 3055 | } |
| 3056 | } |
| 3057 | |
| 3058 | |
| 3059 | bool PEViewType::IsTypeValidForData(BinaryView* data) |