| 398 | } |
| 399 | |
| 400 | IPluginV2Ext* FlattenConcatPluginCreator::deserializePlugin( |
| 401 | char const* name, void const* serialData, size_t serialLength) noexcept |
| 402 | { |
| 403 | try |
| 404 | { |
| 405 | // This object will be deleted when the network is destroyed, which will |
| 406 | // call Concat::destroy() |
| 407 | IPluginV2Ext* plugin = new FlattenConcat(serialData, serialLength); |
| 408 | plugin->setPluginNamespace(mNamespace.c_str()); |
| 409 | return plugin; |
| 410 | } |
| 411 | catch (std::exception const& e) |
| 412 | { |
| 413 | caughtError(e); |
| 414 | } |
| 415 | return nullptr; |
| 416 | } |
nothing calls this directly
no test coverage detected