MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / operator()

Method operator()

src/sha3.cpp:275–280  ·  view source on GitHub ↗

compute SHA3 of a memory block

Source from the content-addressed store, hash-verified

273
274/// compute SHA3 of a memory block
275std::string SHA3::operator()(const void* data, size_t numBytes)
276{
277 reset();
278 add(data, numBytes);
279 return getHash();
280}
281
282
283/// compute SHA3 of a string, excluding final zero

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected