| 219 | TEMPLATED_ARRAY_NAMES_DEMANGLE_MACRO(vtkConstantArray); |
| 220 | |
| 221 | void Serialize_Blob(vtkTypeUInt8Array* blob, nlohmann::json& state, vtkSerializer* serializer) |
| 222 | { |
| 223 | auto context = serializer->GetContext(); |
| 224 | std::string hash; |
| 225 | if (context->RegisterBlob(blob, hash)) |
| 226 | { |
| 227 | state["Hash"] = hash; |
| 228 | } |
| 229 | else |
| 230 | { |
| 231 | vtkErrorWithObjectMacro(context, << serializer->GetObjectDescription() << " failed to add blob " |
| 232 | << blob->GetObjectDescription()); |
| 233 | return; |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | bool Deserialize_Blob( |
| 238 | nlohmann::json& blob, const nlohmann::json& state, vtkDeserializer* deserializer) |
no test coverage detected