MCPcopy Create free account
hub / github.com/LUX-Core/lux / FixedHash

Method FixedHash

src/cpp-ethereum/libdevcore/FixedHash.h:66–66  ·  view source on GitHub ↗

Construct an empty hash.

Source from the content-addressed store, hash-verified

64
65 /// Construct an empty hash.
66 FixedHash() { m_data.fill(0); }
67
68 /// Construct from another hash, filling with zeroes or cropping as necessary.
69 template <unsigned M> explicit FixedHash(FixedHash<M> const& _h, ConstructFromHashType _t = AlignLeft) { m_data.fill(0); unsigned c = std::min(M, N); for (unsigned i = 0; i < c; ++i) m_data[_t == AlignRight ? N - 1 - i : i] = _h[_t == AlignRight ? M - 1 - i : i]; }

Callers

nothing calls this directly

Calls 6

toBigEndianFunction · 0.85
memcpyFunction · 0.85
asBytesFunction · 0.85
fillMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected