Changeset View
Changeset View
Standalone View
Standalone View
src/uint256.h
Show First 20 Lines • Show All 55 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; | ||||
} | } | ||||
friend inline bool operator!=(const base_blob &a, const base_blob &b) { | friend inline bool operator!=(const base_blob &a, const base_blob &b) { | ||||
return a.Compare(b) != 0; | return a.Compare(b) != 0; | ||||
} | } | ||||
friend inline bool operator<(const base_blob &a, const base_blob &b) { | friend inline bool operator<(const base_blob &a, const base_blob &b) { | ||||
return a.Compare(b) < 0; | return a.Compare(b) < 0; | ||||
} | } | ||||
friend inline bool operator<=(const base_blob &a, const base_blob &b) { | |||||
return a.Compare(b) <= 0; | |||||
} | |||||
friend inline bool operator>(const base_blob &a, const base_blob &b) { | friend inline bool operator>(const base_blob &a, const base_blob &b) { | ||||
return a.Compare(b) > 0; | return a.Compare(b) > 0; | ||||
} | } | ||||
friend inline bool operator>=(const base_blob &a, const base_blob &b) { | |||||
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(); } | ||||
uint8_t *begin() { return &data[0]; } | uint8_t *begin() { return &data[0]; } | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |