MCPcopy Create free account
hub / github.com/MITK/MITK / GetData

Method GetData

Modules/CppMicroServices/src/usModuleResource.cpp:261–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void* ModuleResource::GetData() const
262{
263 if (!IsValid()) return nullptr;
264
265 void* data = d->resourceContainer->GetData(d->stat.index);
266 if (data == nullptr)
267 {
268 MITK_WARN << "Error uncompressing resource data for " << this->GetResourcePath() << " from "
269 << d->resourceContainer->GetModuleInfo()->location;
270 }
271 return data;
272}
273
274}
275

Callers 1

ModuleResourceStreamMethod · 0.45

Calls 2

GetResourcePathMethod · 0.95
GetModuleInfoMethod · 0.80

Tested by

no test coverage detected