载入中...
搜索中...
未找到
EvpackRange.h
浏览该文件的文档.
79 std::shared_ptr<const EvpackRangeSource> source, const EvpackLimits& limits = {}, const EvpackTrust& trust = {});
Versioned random-access runtime package produced by the asset cooker.
Admitted metadata plus an immutable range source retained by shared ownership.
Definition EvpackRange.h:53
const Evpack & index() const noexcept
Verified package metadata and random-access TOC.
Definition EvpackRange.h:56
Abstract immutable byte-range provider for files, mmap, HTTP or object storage.
Definition EvpackRange.h:18
virtual Result< std::vector< std::uint8_t > > read(std::uint64_t offset, std::uint64_t size) const =0
Read exactly one validated range.
virtual Result< std::uint64_t > size() const =0
Return the authoritative immutable object size.
virtual ~EvpackRangeSource()=default
Releases EvpackRangeSource resources.
Thread-safe file-backed range source; each request owns its file stream.
Definition EvpackRange.h:36
Result< std::vector< std::uint8_t > > read(std::uint64_t offset, std::uint64_t size) const override
Reads .
Definition EvpackRange.cpp:41
FileEvpackRangeSource(std::filesystem::path path)
Bind a path; the file is opened separately for every operation.
Definition EvpackRange.h:39
Definition AssetCooker.cpp:17
Result< EvpackRangeMount > prepareEvpackRangeMount(std::shared_ptr< const EvpackRangeSource > source, const EvpackLimits &limits, const EvpackTrust &trust)
Read only header/manifest/TOC and prepare on-demand range loading.
Definition EvpackRange.cpp:65
Definition Container.h:602
Resource limits checked before package allocations and hash work.
Definition Evpack.h:126