| 69 | #endif |
| 70 | |
| 71 | static std::shared_ptr<dynamic_loader_impl> from_buffer(const char* image, std::size_t size) |
| 72 | { |
| 73 | auto t = std::make_shared<tmp_dir>("dloader"); |
| 74 | auto f = t->path / "libtmp.so"; |
| 75 | write_buffer(f, image, size); |
| 76 | return std::make_shared<dynamic_loader_impl>(f, t); |
| 77 | } |
| 78 | |
| 79 | std::shared_ptr<void> handle = nullptr; |
| 80 | std::shared_ptr<tmp_dir> temp = nullptr; |
nothing calls this directly
no test coverage detected