MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / deserialize

Method deserialize

kernel/orbis/src/thread/Process.cpp:24–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24 void deserialize(rx::Deserializer &s) {
25 while (true) {
26 auto id = s.deserialize<std::uint8_t>();
27 if (id == static_cast<std::uint8_t>(-1)) {
28 break;
29 }
30
31 auto value = s.deserialize<orbis::pid_t>();
32
33 if (s.failure()) {
34 break;
35 }
36
37 if (!pidMap.emplace_at(id, value)) {
38 s.setFailure();
39 return;
40 }
41 }
42 }
43};
44
45static auto g_processIdList =

Callers

nothing calls this directly

Calls 3

emplace_atMethod · 0.80
setFailureMethod · 0.80
failureMethod · 0.45

Tested by

no test coverage detected