| 281 | } |
| 282 | |
| 283 | std::unique_ptr<void, void (*)(void*)> |
| 284 | BundleResource::GetData() const |
| 285 | { |
| 286 | if (!IsValid()) |
| 287 | { |
| 288 | return { nullptr, ::free }; |
| 289 | } |
| 290 | |
| 291 | return d->archive->GetResourceContainer()->GetData(d->stat.index); |
| 292 | } |
| 293 | |
| 294 | std::ostream& |
| 295 | operator<<(std::ostream& os, BundleResource const& resource) |