Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 13 template <
unsigned int BITS>
16 assert(vch.size() ==
sizeof(data));
17 memcpy(data, vch.data(),
sizeof(data));
20 template <
unsigned int BITS>
23 return HexStr(std::reverse_iterator<const uint8_t*>(data +
sizeof(data)), std::reverse_iterator<const uint8_t*>(data));
26 template <
unsigned int BITS>
29 memset(data, 0,
sizeof(data));
36 if (psz[0] ==
'0' && tolower(psz[1]) ==
'x')
40 const char* pbegin = psz;
44 unsigned char* p1 = (
unsigned char*)data;
45 unsigned char* pend = p1 + WIDTH;
46 while (psz >= pbegin && p1 < pend) {
49 *p1 |= ((
unsigned char)::
HexDigit(*psz--) << 4);
55 template <
unsigned int BITS>
61 template <
unsigned int BITS>
std::string HexStr(const T itbegin, const T itend, bool fSpaces=false)
std::string ToString() const
void * memcpy(void *a, const void *b, size_t c)
std::string GetHex() const
signed char HexDigit(char c)
void SetHex(const char *psz)