载入中...
搜索中...
未找到
eve::asset::EvpackResourceReader类 参考

Immutable reader retaining an admitted pack by shared ownership. 更多...

#include <EvpackResourceReader.h>

Public 成员函数

 EvpackResourceReader (std::shared_ptr< const Evpack > pack)
 Bind an admitted package; null is rejected by read.
 
Result< RuntimeAssetPayload > read (const AssetRef &asset, std::string_view expectedType, const EvpackCapabilities &capabilities, std::uint64_t maximumDecodedBytes) const
 Resolve, type-check, variant-select and decode a canonical runtime asset.
 
Result< std::vector< AssetRef > > listAssets (std::string_view expectedType, const EvpackCapabilities &capabilities, std::uint32_t maximumAssets=1 '000 '000) const
 List stable assets providing an exact type/version for the selected runtime variant.
 

详细描述

Immutable reader retaining an admitted pack by shared ownership.

在文件 EvpackResourceReader.h 第 29 行定义.

构造及析构函数说明

◆ EvpackResourceReader()

eve::asset::EvpackResourceReader::EvpackResourceReader ( std::shared_ptr< const Evpack >  pack)
inlineexplicit

Bind an admitted package; null is rejected by read.

在文件 EvpackResourceReader.h 第 32 行定义.

成员函数说明

◆ listAssets()

Result< std::vector< AssetRef > > eve::asset::EvpackResourceReader::listAssets ( std::string_view  expectedType,
const EvpackCapabilities &  capabilities,
std::uint32_t  maximumAssets = 1'000'000 
) const

List stable assets providing an exact type/version for the selected runtime variant.

参数
expectedTypeCanonical type/version such as eve.vegetation-scene/1.
capabilitiesActual runtime capabilities used for variant selection.
maximumAssetsOwning result budget; exceeding it fails without a partial list.
返回
Sorted unique asset references, which may be empty when the type is absent. @thread Worker-safe while this immutable reader is read concurrently.

在文件 EvpackResourceReader.cpp 第 64 行定义.

引用了 eve::Diagnostic::error(), eve::Failed, eve::AssetRef::fromId(), eve::InvalidArgument, reference , 以及 eve::asset::selectEvpackVariant().

被这些函数引用 eve::asset_graphics::VegetationSceneAssociationLoader::load().

◆ read()

Result< RuntimeAssetPayload > eve::asset::EvpackResourceReader::read ( const AssetRef &  asset,
std::string_view  expectedType,
const EvpackCapabilities &  capabilities,
std::uint64_t  maximumDecodedBytes 
) const

该类的文档由以下文件生成: