Struct thl::net::AssetFile#

struct AssetFile#

Collaboration diagram for thl::net::AssetFile:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "3" [label="std::basic_string< Char >" tooltip="std::basic_string< Char >"] "2" [label="std::string" tooltip="std::string"] "1" [label="thl::net::AssetFile" tooltip="thl::net::AssetFile" fillcolor="#BFBFBF"] "2" -> "3" [dir=forward tooltip="public-inheritance"] "1" -> "2" [dir=forward tooltip="usage"] }

One file inside an asset.

The caller fills this in from whatever index it uses — this component has no opinion about manifests.

Public Members

std::string m_url#

Absolute URL to fetch.

std::string m_name#

Filename to store, relative to the asset directory.

May contain separators for nested layouts; must not escape the directory.

std::uint64_t m_size = 0#

Expected size in bytes. Zero means unknown — the size check is skipped.

std::string m_sha256#

Expected SHA-256, lowercase hex.

Empty means unverified, which the store allows but callers should avoid.