* Append the given dictionary */
| 154 | * Append the given dictionary |
| 155 | */ |
| 156 | static inline void PackDictionary(const Dictionary::Ptr& dict, std::string& builder) |
| 157 | { |
| 158 | ObjectLock olock(dict); |
| 159 | |
| 160 | builder += '\6'; |
| 161 | PackUInt64BE(dict->GetLength(), builder); |
| 162 | |
| 163 | for (const Dictionary::Pair& kv : dict) { |
| 164 | PackString(kv.first, builder); |
| 165 | PackAny(kv.second, builder); |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Append any JSON-encodable value |
no test coverage detected