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>
14 explicit sha1(
const std::string& hex_str );
16 std::string
str()
const;
17 operator std::string()
const;
22 static sha1 hash(
const char* d, uint32_t dlen );
23 static sha1 hash(
const std::string& );
39 void write(
const char* d, uint32_t dlen );
51 ds.write( ep.
data(),
sizeof(ep) );
57 ds.read( ep.
data(),
sizeof(ep) );
68 boost::endian::little_uint32_buf_t
_hash[5];
74 inline void pack( T& ds,
const sha1& ep, uint32_t _max_depth ) {
79 inline void unpack( T& ds,
sha1& ep, uint32_t _max_depth ) {
86 void to_variant(
const sha1& bi, variant& v, uint32_t max_depth );
87 void from_variant(
const variant& v, sha1& bi, uint32_t max_depth );
98 return *((
size_t*)&s);
friend sha1 operator^(const sha1 &h1, const sha1 &h2)
static sha1 hash(const T &t)
boost::endian::little_uint32_buf_t _hash[5]
friend bool operator>(const sha1 &h1, const sha1 &h2)
friend bool operator>=(const sha1 &h1, const sha1 &h2)
FC_REFLECT_TYPENAME(fc::log_message)
void unpack(Stream &s, flat_set< T, A... > &value, uint32_t _max_depth)
friend bool operator==(const sha1 &h1, const sha1 &h2)
friend bool operator!=(const sha1 &h1, const sha1 &h2)
static constexpr size_t data_size()
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
Defines types and macros used to provide reflection.
friend T & operator>>(T &ds, sha1 &ep)
size_t operator()(const fc::sha1 &s) const
static sha1 hash(const char *d, uint32_t dlen)
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
friend bool operator<(const sha1 &h1, const sha1 &h2)
friend T & operator<<(T &ds, const sha1 &ep)
Used to forward declare value types.
void write(const char *d, uint32_t dlen)
void pack(Stream &s, const flat_set< T, A... > &value, uint32_t _max_depth)