MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / SerializeStringSet

Method SerializeStringSet

Common/config/windowfilter.hpp:125–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123private:
124 template<typename Writer, typename Hash, typename Equal, typename Alloc>
125 inline static void SerializeStringSet(Writer &writer, const std::unordered_set<std::wstring, Hash, Equal, Alloc> &set, std::wstring_view key)
126 {
127 rjh::WriteKey(writer, key);
128 writer.StartArray();
129 for (const std::wstring &str : set)
130 {
131 rjh::WriteString(writer, str);
132 }
133 writer.EndArray();
134 }
135
136 template<typename Hash, typename Equal, typename Alloc>
137 inline static void DeserializeStringSet(const rjh::value_t &arr, std::unordered_set<std::wstring, Hash, Equal, Alloc> &set, std::wstring_view key)

Callers

nothing calls this directly

Calls 2

WriteKeyFunction · 0.85
WriteStringFunction · 0.85

Tested by

no test coverage detected