Make uint256 Span-convertible by adding ::data()

pull/764/head
Pieter Wuille 4 years ago
parent 131a2f0337
commit 567825049f

@ -51,6 +51,9 @@ public:
void SetHex(const std::string& str);
std::string ToString() const;
const unsigned char* data() const { return m_data; }
unsigned char* data() { return m_data; }
unsigned char* begin()
{
return &m_data[0];

Loading…
Cancel
Save