| 259 | } |
| 260 | |
| 261 | void* 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 |
no test coverage detected