static inline int unserializeImpl(CStrRef sdata, Variant& data) { if (sdata.same(s_hit_limit)) { return DebuggerWireHelpers::HitLimit; } if (sdata.same(s_unknown_exp)) { return DebuggerWireHelpers::UnknownError; } VariableUnserializer vu(sdata.data(), sdata.size(), VariableUnserializer::Serialize, true); try { data = vu.unserialize(); } catch (Exception &e) { data = null_variant; return DebuggerWireHelpers::UnknownError; } return DebuggerWireHelpers::NoError; }
bool AssocList::exists(CStrRef name, bool checkInit /* = false */) const { for (VarAssocPair *vp = m_list; vp; vp = vp->m_next) { if (name.same(vp->name())) { if (checkInit && !vp->var().isInitialized()) return false; return true; } } return false; }