MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / load_shared_buf

Method load_shared_buf

src/serialization/impl/opr_load_dump.cpp:85–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85SharedBuffer OprLoadContextRawPOD::load_shared_buf(size_t size) {
86 std::shared_ptr<uint8_t> shptr{new uint8_t[size], [](uint8_t* p) { delete[] p; }};
87 read_raw(shptr.get(), size);
88 return {std::move(shptr), size};
89}
90
91// vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected