| 366 | } |
| 367 | |
| 368 | IPluginV2Ext* NormalizePluginCreator::deserializePlugin( |
| 369 | char const* name, void const* serialData, size_t serialLength) noexcept |
| 370 | { |
| 371 | try |
| 372 | { |
| 373 | // This object will be deleted when the network is destroyed, which will |
| 374 | // call Normalize::destroy() |
| 375 | Normalize* obj = new Normalize(serialData, serialLength); |
| 376 | obj->setPluginNamespace(mNamespace.c_str()); |
| 377 | return obj; |
| 378 | } |
| 379 | catch (std::exception const& e) |
| 380 | { |
| 381 | caughtError(e); |
| 382 | } |
| 383 | return nullptr; |
| 384 | } |
nothing calls this directly
no test coverage detected