Skip to content

ludus::foundation::filesystem::Provider

Ludus Wiki · API overview · Browse API

Class

Intrusively retained byte provider. Construct on the heap and adopt exactly once. Providers must support concurrent const opens and keep each returned file alive independently of the provider. No exceptions may cross these interfaces.

Declared in modules/foundation/filesystem/include/ludus/foundation/filesystem/namespace.hpp

#include <ludus/foundation/filesystem/namespace.hpp>
class ludus::foundation::filesystem::Provider

Methods

OpenRead

virtual Result ludus::foundation::filesystem::Provider::OpenRead(std::string_view relativePath, ProviderFile *&output) const noexcept=0
Opens a ValidPath key; success transfers a non-null independently owned file. Failure preserves output. Only NotFound permits a mount lookup to continue.

Related types: ProviderFile · Result

Declared in modules/foundation/filesystem/include/ludus/foundation/filesystem/namespace.hpp