载入中...
搜索中...
未找到
SnapshotHash.h
浏览该文件的文档.
46[[nodiscard]] EVENGINE_API_FOUNDATION std::string_view contentDigestKindName(ContentDigestKind kind) noexcept;
81[[nodiscard]] EVENGINE_API std::shared_ptr<ISnapshotContentHasher> builtinSnapshotContentHasher();
Strong identity values shared by persistence, content and logical-name APIs.
Move-only, checked operation results for the common layer.
Versioned, integrity-checked persistence envelopes.
One content-digest implementation usable for snapshot sealing and verification.
Definition SnapshotHash.h:54
virtual ~ISnapshotContentHasher()=default
Releases ISnapshotContentHasher resources.
virtual std::string_view id() const noexcept=0
Stable algorithm id, persisted or logged next to the data it hashed.
static constexpr const char * capabilityName
Capability name a provider registers under.
Definition SnapshotHash.h:57
virtual ContentDigestKind digestKind() const noexcept=0
What this digest guarantees.
std::string_view contentDigestKindName(ContentDigestKind kind) noexcept
Stable protocol spelling of a digest kind.
Definition SnapshotHash.cpp:71
ContentDigestKind
What a digest implementation actually guarantees, stated rather than implied.
Definition SnapshotHash.h:38
@ Cryptographic
A cryptographic digest; the provider documents its algorithm and properties.
@ NonCryptographic
Fast, deterministic, collision-resistant enough for storage identity only.
Result< void > registerBuiltinSnapshotHasher()
Register the built-in hasher, unless a module already registered one.
Definition SnapshotHash.cpp:85
SnapshotHashProvider snapshotContentHashProvider()
A SnapshotHashProvider backed by the active hasher.
Definition SnapshotHash.cpp:92
std::shared_ptr< ISnapshotContentHasher > builtinSnapshotContentHasher()
The engine's built-in content hasher.
Definition SnapshotHash.cpp:79
std::string_view activeSnapshotHashAlgorithm() noexcept
Id of the algorithm snapshotContentHashProvider currently uses.
Definition SnapshotHash.cpp:97
ISnapshotContentHasher * registeredSnapshotContentHasher() noexcept
The currently registered hasher, if a module registered one.
Definition SnapshotHash.cpp:81
std::function< Result< ContentId >(std::string_view canonicalInput)> SnapshotHashProvider
Injected content-digest implementation used by snapshots.
Definition Snapshot.h:36
Definition Container.h:602