Changeset View
Changeset View
Standalone View
Standalone View
src/uint256.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | friend inline bool operator>=(const base_blob &a, const base_blob &b) { | ||||
return a.Compare(b) >= 0; | return a.Compare(b) >= 0; | ||||
} | } | ||||
std::string GetHex() const; | std::string GetHex() const; | ||||
void SetHex(const char *psz); | void SetHex(const char *psz); | ||||
void SetHex(const std::string &str); | void SetHex(const std::string &str); | ||||
std::string ToString() const { return GetHex(); } | std::string ToString() const { return GetHex(); } | ||||
const uint8_t *data() const { return m_data; } | |||||
uint8_t *data() { return m_data; } | |||||
uint8_t *begin() { return &m_data[0]; } | uint8_t *begin() { return &m_data[0]; } | ||||
uint8_t *end() { return &m_data[WIDTH]; } | uint8_t *end() { return &m_data[WIDTH]; } | ||||
const uint8_t *begin() const { return &m_data[0]; } | const uint8_t *begin() const { return &m_data[0]; } | ||||
const uint8_t *end() const { return &m_data[WIDTH]; } | const uint8_t *end() const { return &m_data[WIDTH]; } | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |