Skip to content

Commit

Permalink
Make uint256 Span-convertible by adding ::data()
Browse files Browse the repository at this point in the history
  • Loading branch information
sipa committed Jul 30, 2020
1 parent 131a2f0 commit 5678250
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/uint256.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class base_blob
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];
Expand Down

0 comments on commit 5678250

Please sign in to comment.