MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / hashBytes

Function hashBytes

test/common/hashTest.cpp:17–20  ·  view source on GitHub ↗

Helper: hash a raw byte buffer via the public API.

Source from the content-addressed store, hash-verified

15
16// Helper: hash a raw byte buffer via the public API.
17uint64_t hashBytes(const void *Data, size_t Len) {
18 WasmEdge::Hash::Hash H;
19 return H(std::string_view(static_cast<const char *>(Data), Len));
20}
21
22// Determinism: same input always produces same output within a process.
23TEST(HashTest, Deterministic) {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected