MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / Deserialize

Function Deserialize

view/kernelcache/core/KernelCache.cpp:2412–2423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2410namespace KernelCacheCore {
2411
2412void 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
2425void Serialize(SerializationContext& context, const Ref<Symbol>& value)
2426{

Callers 1

loadMethod · 0.70

Calls 7

HasMemberMethod · 0.80
GetArrayMethod · 0.80
push_backMethod · 0.80
dataMethod · 0.45
GetStringMethod · 0.45
insertMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected