MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / from_buffer

Method from_buffer

src/dynamic_loader.cpp:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

write_bufferFunction · 0.85

Tested by

no test coverage detected