| 592 | } |
| 593 | |
| 594 | ByteArrayConstPtr Assets::bytes(String const& path) const { |
| 595 | auto components = AssetPath::split(path); |
| 596 | validatePath(components, false, false); |
| 597 | |
| 598 | return as<BytesData>(getAsset(AssetId{AssetType::Bytes, std::move(components)}))->bytes; |
| 599 | } |
| 600 | |
| 601 | IODevicePtr Assets::openFile(String const& path) const { |
| 602 | return open(path); |
nothing calls this directly
no test coverage detected