HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dataSourceHash.h File Reference
+ Include dependency graph for dataSourceHash.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using HdDataSourceHashType = size_t
 

Functions

HD_API HdDataSourceHashType HdDataSourceHash (HdDataSourceBaseHandle const &ds, const HdSampledDataSource::Time startTime, const HdSampledDataSource::Time endTime)
 

Typedef Documentation

using HdDataSourceHashType = size_t

Definition at line 34 of file dataSourceHash.h.

Function Documentation

HD_API HdDataSourceHashType HdDataSourceHash ( HdDataSourceBaseHandle const &  ds,
const HdSampledDataSource::Time  startTime,
const HdSampledDataSource::Time  endTime 
)

Compute hash of a data source by using sampled from startTime to endTime.

Warning: this hash is not strong and is bad for fingerprinting where the hash for two data sources being equal has to imply that the two data sources have equal data with high probability. The has is only 64bit and makes various performance tradeoffs such that is suitable for a hashtable but not for fingerprinting.