| 2410 | namespace KernelCacheCore { |
| 2411 | |
| 2412 | void Deserialize( |
| 2413 | DeserializationContext& context, std::string_view name, std::optional<std::pair<uint64_t, uint64_t>>& value) |
| 2414 | { |
| 2415 | if (!context.doc.HasMember(name.data())) |
| 2416 | { |
| 2417 | value = std::nullopt; |
| 2418 | return; |
| 2419 | } |
| 2420 | |
| 2421 | auto array = context.doc[name.data()].GetArray(); |
| 2422 | value = {array[0].GetUint64(), array[1].GetUint64()}; |
| 2423 | } |
| 2424 | |
| 2425 | void Serialize(SerializationContext& context, const Ref<Symbol>& value) |
| 2426 | { |