Skip to content

Commit 5678250

Browse files
committed
Make uint256 Span-convertible by adding ::data()
1 parent 131a2f0 commit 5678250

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/uint256.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ class base_blob
5151
void SetHex(const std::string& str);
5252
std::string ToString() const;
5353

54+
const unsigned char* data() const { return m_data; }
55+
unsigned char* data() { return m_data; }
56+
5457
unsigned char* begin()
5558
{
5659
return &m_data[0];

0 commit comments

Comments
 (0)