| 18 | { |
| 19 | |
| 20 | std::string CacheIDHash(const char * array, std::size_t size) |
| 21 | { |
| 22 | XXH128_hash_t hash = XXH3_128bits(array, size); |
| 23 | |
| 24 | std::stringstream oss; |
| 25 | oss << std::hex << std::setfill('0'); |
| 26 | oss << std::setw(16) << hash.low64; |
| 27 | oss << std::setw(16) << hash.high64; |
| 28 | return oss.str(); |
| 29 | } |
| 30 | |
| 31 | } // namespace OCIO_NAMESPACE |
no outgoing calls
no test coverage detected