MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / Process

Method Process

src/Phobos.Ext.cpp:118–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116{
117 template <typename T>
118 static bool Process(IStream* pStm)
119 {
120 if constexpr (GlobalSaveLoadable<T>)
121 {
122 PhobosByteStream stm(0);
123 stm.ReadBlockFromStream(pStm);
124 PhobosStreamReader reader(stm);
125
126 return T::LoadGlobals(reader) && reader.ExpectEndOfBlock();
127 }
128 else
129 {
130 return true;
131 }
132 }
133};
134
135// calls:

Callers

nothing calls this directly

Calls 2

ReadBlockFromStreamMethod · 0.80
ExpectEndOfBlockMethod · 0.80

Tested by

no test coverage detected