MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / getHash

Method getHash

src/backend/common/jit/BufferNodeBase.hpp:100–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 size_t getBytes() const final { return m_bytes; }
99
100 size_t getHash() const noexcept override {
101 size_t out = 0;
102 auto ptr = m_data.get();
103 std::memcpy(&out, &ptr, std::max(sizeof(Node *), sizeof(size_t)));
104 return out;
105 }
106
107 /// Compares two BufferNodeBase objects for equality
108 bool operator==(

Callers

nothing calls this directly

Calls 2

maxFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected