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 authored and furszy committed Jul 6, 2021
1 parent 0067590 commit 1f18199
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 @@ -57,6 +57,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 1f18199

Please sign in to comment.