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

Method write_pod

src/core/impl/system.cpp:381–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379
380 template <class T>
381 void write_pod(T val) {
382 static_assert(std::is_pod<T>::value, "can only write POD");
383 write(&val, sizeof(T));
384 }
385
386 void fork_exec_impl_mainloop(const char* arg) override {
387 CHECK_SYS_ERR(prctl(PR_SET_PDEATHSIG, SIGKILL));

Callers

nothing calls this directly

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected