Blender V5.3
blender::UniqueHashBytes Struct Reference

#include <BLI_unique_hash.hh>

Public Member Functions

template<typename T>
void add (const T &value)

Public Attributes

Vector< std::byte, 256 > data

Detailed Description

Used to collect data to build a UniqueHash. It is more efficient to hash a span of bytes in one step than to update a hash with more data piece by piece.

Definition at line 34 of file BLI_unique_hash.hh.

Member Function Documentation

◆ add()

template<typename T>
void blender::UniqueHashBytes::add ( const T & value)
inline

Add bytes representing a value to the hash. Note that this doesn't account for types with non- unique object representations (i.e. float -0 and +0, or padding bytes).

Definition at line 40 of file BLI_unique_hash.hh.

References data, and T.

Referenced by blender::fn::FieldHashDeep::ensure().

Member Data Documentation

◆ data


The documentation for this struct was generated from the following file: