MCPcopy Create free account
hub / github.com/carbonengine/trinity / HashResourcePtr

Function HashResourcePtr

trinityal/src/Tr2ResourceSetAL.cpp:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17template <typename T>
18void HashResourcePtr( const T& resource, uint32_t& hash )
19{
20 auto p = resource.TrinityALImpl_GetObject();
21 hash = CcpHashFNV1( &p, sizeof( p ), hash );
22}
23
24}
25

Callers 1

UpdateHashMethod · 0.85

Calls 1

Tested by

no test coverage detected