Skip to content

ludus::foundation::filesystem::ProviderFile

Ludus Wiki · API overview · Browse API

Class

Independently owned opened provider revision; destruction releases it best-effort. Const operations must support concurrent reads into disjoint caller-owned buffers.

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

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

Methods

~ProviderFile

virtual ludus::foundation::filesystem::ProviderFile::~ProviderFile() noexcept=default
Releases the opened revision without logging or errors.

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

Size

virtual uint64 ludus::foundation::filesystem::ProviderFile::Size() const noexcept=0
Returns the captured byte length.

Related types: uint64

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

ReadAt

virtual ReadResult ludus::foundation::filesystem::ProviderFile::ReadAt(uint64 offset, std::span< uint8 > destination) const noexcept=0
Uses File::ReadAt semantics: fills to captured EOF, reports partial errors, returns zero valid bytes on Changed, and performs no warm-read allocation.

Related types: uint64 · uint8 · ReadResult

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