 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
8 #ifndef PRCY_BLOB_UINT256_H
9 #define PRCY_BLOB_UINT256_H
19 template<
unsigned int BITS>
32 explicit base_blob(
const std::vector<unsigned char>& vch);
36 for (
int i = 0; i <
WIDTH; i++)
51 std::string
GetHex()
const;
52 void SetHex(
const char* psz);
53 void SetHex(
const std::string& str);
66 const unsigned char*
begin()
const
71 const unsigned char*
end()
const
86 template<
typename Stream>
87 void Serialize(Stream& s,
int nType,
int nVersion)
const
92 template<
typename Stream>
163 #endif // PRCY_BLOB_UINT256_H
const blob_uint256 BLOB_UINT256_ONE
uint64_t GetHash(const blob_uint256 &salt) const
A more secure, salted hash function.
blob_uint256 blob_uint256S(const char *str)
blob_uint160(const base_blob< 160 > &b)
blob_uint256(const base_blob< 256 > &b)
friend bool operator!=(const base_blob &a, const base_blob &b)
void Unserialize(Stream &s, int nType, int nVersion)
blob_uint160(const std::vector< unsigned char > &vch)
uint64_t GetCheapHash() const
A cheap hash function that just returns 64 bits from the result, it can be used when the contents are...
void Serialize(Stream &s, int nType, int nVersion) const
Template base class for fixed-sized opaque blobs.
void * memcpy(void *a, const void *b, size_t c)
unsigned int GetSerializeSize(int nType, int nVersion) const
std::string GetHex() const
friend bool operator<(const base_blob &a, const base_blob &b)
friend bool operator==(const base_blob &a, const base_blob &b)
std::string ToString() const
const unsigned char * end() const
blob_uint256(const std::vector< unsigned char > &vch)
const unsigned char * begin() const
unsigned int size() const
void SetHex(const char *psz)
const blob_uint256 BLOB_UINT256_ZERO
constant uint256 instances