MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / operator()

Method operator()

source/core/StarByteArray.hpp:249–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249inline size_t hash<ByteArray>::operator()(ByteArray const& b) const {
250 PLHasher hash;
251 for (size_t i = 0; i < b.size(); ++i)
252 hash.put(b[i]);
253 return hash.hash();
254}
255
256}
257

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
putMethod · 0.45
hashMethod · 0.45

Tested by

no test coverage detected