7 #ifndef BITCOIN_UINT256_H 8 #define BITCOIN_UINT256_H 19 template<
unsigned int BITS>
31 explicit base_blob(
const std::vector<unsigned char>& vch);
35 for (
int i = 0; i <
WIDTH; i++)
50 std::string
GetHex()
const;
51 void SetHex(
const char* psz);
52 void SetHex(
const std::string& str);
65 const unsigned char*
begin()
const 70 const unsigned char*
end()
const 85 template<
typename Stream>
86 void Serialize(Stream& s,
int nType,
int nVersion)
const 91 template<
typename Stream>
173 #endif // BITCOIN_UINT256_H
uint256(const base_blob< 256 > &b)
void Serialize(Stream &s, int nType, int nVersion) const
const unsigned char * begin() const
uint64_t GetHash(const uint256 &salt) const
friend bool operator==(const base_blob &a, const base_blob &b)
uint512(const base_blob< 512 > &b)
uint512(const std::vector< unsigned char > &vch)
friend bool operator!=(const base_blob &a, const base_blob &b)
unsigned int GetSerializeSize(int nType, int nVersion) const
const unsigned char * end() const
uint256(const std::vector< unsigned char > &vch)
uint256 uint256S(const char *str)
friend bool operator<(const base_blob &a, const base_blob &b)
std::string ToString() const
unsigned int size() const
uint160(const base_blob< 160 > &b)
void * memcpy(void *a, const void *b, size_t c)
std::string GetHex() const
static uint64_t ReadLE64(const unsigned char *ptr)
uint160(const std::vector< unsigned char > &vch)
void Unserialize(Stream &s, int nType, int nVersion)
uint64_t GetCheapHash() const
void SetHex(const char *psz)