| 546 | } |
| 547 | |
| 548 | IPluginV2Ext* RegionPluginCreator::deserializePlugin( |
| 549 | char const* name, void const* serialData, size_t serialLength) noexcept |
| 550 | { |
| 551 | try |
| 552 | { |
| 553 | // This object will be deleted when the network is destroyed, which will |
| 554 | // call Region::destroy() |
| 555 | Region* obj = new Region(serialData, serialLength); |
| 556 | obj->setPluginNamespace(mNamespace.c_str()); |
| 557 | return obj; |
| 558 | } |
| 559 | catch (std::exception const& e) |
| 560 | { |
| 561 | caughtError(e); |
| 562 | } |
| 563 | return nullptr; |
| 564 | } |
| 565 | } // namespace plugin |
| 566 | } // namespace nvinfer1 |
nothing calls this directly
no test coverage detected