| 883 | } |
| 884 | |
| 885 | IPluginV2Ext* ProposalPluginCreator::deserializePlugin( |
| 886 | char const* name, void const* serialData, size_t serialLength) noexcept |
| 887 | { |
| 888 | try |
| 889 | { |
| 890 | // This object will be deleted when the network is destroyed, |
| 891 | IPluginV2Ext* plugin = new ProposalPlugin(serialData, serialLength); |
| 892 | plugin->setPluginNamespace(mNamespace.c_str()); |
| 893 | return plugin; |
| 894 | } |
| 895 | catch (std::exception const& e) |
| 896 | { |
| 897 | caughtError(e); |
| 898 | } |
| 899 | return nullptr; |
| 900 | } |
| 901 | |
| 902 | IPluginV2DynamicExt* ProposalDynamicPluginCreator::deserializePlugin( |
| 903 | char const* name, void const* serialData, size_t serialLength) noexcept |
nothing calls this directly
no test coverage detected