Skip to content

Commit

Permalink
deserialzed error resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
riasc committed Oct 6, 2024
1 parent f440270 commit 67edc7e
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/Key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,31 +64,6 @@ namespace genogrove {
// deserialize the data
key.data = key.data->deserialize(is);
}





// read the type name
std::string typeName(typeNameLength, '\0');






Key key = Key::deserialize(is);

// deserialize the data
size_t typeNameLength;
is.read(reinterpret_cast<char*>(&typeNameLength), sizeof(typeNameLength));
std::string typeName(typeNameLength, '\0');
is.read(&typeName[0], typeNameLength);

std::shared_ptr<AnyBase> data = data->deserialize(is);



return key;
}

Expand Down

0 comments on commit 67edc7e

Please sign in to comment.