Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ read_pod
Method
read_pod
src/core/impl/system.cpp:373–378 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
371
372
template <class T>
373
T read_pod() {
374
static_assert(std::is_pod<T>::value,
"can only read POD"
);
375
T ret;
376
read(&ret, sizeof(T));
377
return ret;
378
}
379
380
template <class T>
381
void write_pod(T val) {
Callers
nothing calls this directly
Calls
1
read
Function · 0.85
Tested by
no test coverage detected