14struct static_resource_item;
25 std::span<std::byte const> bytes;
31 [[nodiscard]]
static std::span<std::byte const>
find(std::string_view filename)
noexcept
33 for (
auto ptr = static_resource_list.load(); ptr !=
nullptr; ptr = ptr->next) {
34 if (filename == ptr->filename) {
55 tt_axiom(new_item !=
nullptr);
56 return new_item->next = static_resource_list.exchange(new_item);
Definition static_resource_list.hpp:22
static tt_no_inline static_resource_item const * add(static_resource_item *new_item) noexcept
Add a resource item to the list.
Definition static_resource_list.hpp:53
static std::span< std::byte const > find(std::string_view filename) noexcept
Search for a static resource item.
Definition static_resource_list.hpp:31