6#include <boost/functional/hash.hpp>
15 explicit sha256(
const string& hex_str );
16 explicit sha256(
const char *data,
size_t size );
21 const char*
data()
const;
55 ds.write( ep.
data(),
sizeof(ep) );
61 ds.read( ep.
data(),
sizeof(ep) );
76 __builtin_popcountll(
_hash[1]) +
77 __builtin_popcountll(
_hash[2]) +
78 __builtin_popcountll(
_hash[3]));
116 struct hash<
fc::sha256>
120 return *((
size_t*)&
s);
129 struct hash<
fc::sha256>
Used to forward declare value types.
void write(const char *d, uint32_t dlen)
static double inverse_approx_log_32_double(uint32_t x)
friend sha256 operator^(const sha256 &h1, const sha256 &h2)
uint32_t approx_log_32() const
void set_to_inverse_approx_log_32(uint32_t x)
uint32_t pop_count() const
static sha256 hash(const char *d, uint32_t dlen)
friend bool operator!=(const sha256 &h1, const sha256 &h2)
friend T & operator>>(T &ds, sha256 &ep)
const char * data() const
static sha256 hash(const T &t)
friend T & operator<<(T &ds, const sha256 &ep)
friend bool operator==(const sha256 &h1, const sha256 &h2)
friend bool operator>(const sha256 &h1, const sha256 &h2)
friend bool operator<(const sha256 &h1, const sha256 &h2)
friend bool operator>=(const sha256 &h1, const sha256 &h2)
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
void pack(Stream &s, const std::deque< T > &value)
uint64_t hash64(const char *buf, size_t len)
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
#define T(meth, val, expected)
#define FC_REFLECT_TYPENAME(TYPE)
unsigned __int64 uint64_t
size_t operator()(const fc::sha256 &s) const
size_t operator()(const fc::sha256 &s) const