BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
25 #include <boost/endian/buffers.hpp>
36 explicit hash160(
const string& hex_str );
39 explicit operator string()
const;
42 static constexpr
size_t data_size() {
return 160/8; }
44 static hash160 hash(
const char* d, uint32_t dlen );
61 void write(
const char* d, uint32_t dlen );
73 ds.write( ep.
data(),
sizeof(ep) );
79 ds.read( ep.
data(),
sizeof(ep) );
90 boost::endian::little_uint32_buf_t
_hash[5];
96 inline void pack( T& ds,
const hash160& ep, uint32_t _max_depth ) {
108 void to_variant(
const hash160& bi, variant& v, uint32_t max_depth );
109 void from_variant(
const variant& v, hash160& bi, uint32_t max_depth );
117 struct hash<
fc::hash160>
121 return *((
size_t*)&s);
static constexpr size_t data_size()
friend T & operator>>(T &ds, hash160 &ep)
void unpack(Stream &s, flat_set< T, A... > &value, uint32_t _max_depth)
friend bool operator<(const hash160 &h1, const hash160 &h2)
static hash160 hash(const T &t)
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
friend hash160 operator^(const hash160 &h1, const hash160 &h2)
friend bool operator==(const hash160 &h1, const hash160 &h2)
static hash160 hash(const char *d, uint32_t dlen)
static const char * name()
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
void write(const char *d, uint32_t dlen)
size_t operator()(const fc::hash160 &s) const
friend T & operator<<(T &ds, const hash160 &ep)
friend bool operator!=(const hash160 &h1, const hash160 &h2)
friend bool operator>(const hash160 &h1, const hash160 &h2)
friend bool operator>=(const hash160 &h1, const hash160 &h2)
boost::endian::little_uint32_buf_t _hash[5]
Used to forward declare value types.
void pack(Stream &s, const flat_set< T, A... > &value, uint32_t _max_depth)