BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
2 #include <boost/endian/buffers.hpp>
13 explicit sha224(
const string& hex_str );
16 operator string()
const;
19 static constexpr
size_t data_size() {
return 224 / 8; }
21 static sha224 hash(
const char* d, uint32_t dlen );
38 void write(
const char* d, uint32_t dlen );
50 static_assert(
sizeof(ep) == (8*3+4),
"sha224 size mismatch" );
51 ds.write( ep.
data(),
sizeof(ep) );
57 ds.read( ep.
data(),
sizeof(ep) );
68 boost::endian::little_uint32_buf_t
_hash[7];
74 inline void pack( T& ds,
const sha224& ep, uint32_t _max_depth ) {
86 void to_variant(
const sha224& bi, variant& v, uint32_t max_depth );
87 void from_variant(
const variant& v, sha224& bi, uint32_t max_depth );
93 struct hash<
fc::sha224>
97 return *((
size_t*)&s);
friend bool operator>=(const sha224 &h1, const sha224 &h2)
static constexpr size_t data_size()
FC_REFLECT_TYPENAME(fc::log_message)
void unpack(Stream &s, flat_set< T, A... > &value, uint32_t _max_depth)
friend T & operator<<(T &ds, const sha224 &ep)
friend T & operator>>(T &ds, sha224 &ep)
friend sha224 operator^(const sha224 &h1, const sha224 &h2)
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
Defines types and macros used to provide reflection.
static sha224 hash(const T &t)
size_t operator()(const fc::sha224 &s) const
friend bool operator<(const sha224 &h1, const sha224 &h2)
friend bool operator>(const sha224 &h1, const sha224 &h2)
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
friend bool operator!=(const sha224 &h1, const sha224 &h2)
friend bool operator==(const sha224 &h1, const sha224 &h2)
void write(const char *d, uint32_t dlen)
boost::endian::little_uint32_buf_t _hash[7]
static sha224 hash(const char *d, uint32_t dlen)
Used to forward declare value types.
void pack(Stream &s, const flat_set< T, A... > &value, uint32_t _max_depth)