| 587 | } |
| 588 | |
| 589 | fastgltf::span<const std::byte> load(const fastgltf::URI & uri) |
| 590 | { |
| 591 | auto path = base_directory.empty() ? std::filesystem::path(uri.path()) : base_directory / std::filesystem::path(uri.path()); |
| 592 | std::span<const std::byte> bytes; |
| 593 | |
| 594 | bytes = load_from_asset(path); |
| 595 | |
| 596 | return fastgltf::span<const std::byte>(bytes.data(), bytes.size()); |
| 597 | } |
| 598 | |
| 599 | fastgltf::span<const std::byte> load(const fastgltf::sources::URI & uri) |
| 600 | { |
no test coverage detected