| 339 | } |
| 340 | |
| 341 | Ref<BinaryView> TEViewType::Parse(BinaryView* bv) |
| 342 | { |
| 343 | try |
| 344 | { |
| 345 | return new TEView(bv, true); |
| 346 | } |
| 347 | catch (std::exception& e) |
| 348 | { |
| 349 | m_logger->LogError("%s<BinaryViewType> failed to create view! '%s'", GetName().c_str(), e.what()); |
| 350 | return nullptr; |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | bool TEViewType::IsTypeValidForData(BinaryView* bv) |
| 355 | { |