MCPcopy Create free account
hub / github.com/OpenMW/openmw / deserialize

Method deserialize

components/lua/serialization.cpp:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 bool BasicSerializer::deserialize(std::string_view typeName, std::string_view binaryData, lua_State* lua) const
114 {
115 if (typeName != sRefNumTypeName)
116 return false;
117 ESM::RefNum refnum = loadRefNum(binaryData);
118 if (mAdjustContentFilesIndexFn)
119 refnum.mContentFile = mAdjustContentFilesIndexFn(refnum.mContentFile);
120 sol::stack::push<ESM::RefNum>(lua, refnum);
121 return true;
122 }
123
124 ESM::RefNum UserdataSerializer::loadRefNum(std::string_view data)
125 {

Callers 1

deserializeImplFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected