mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Make uint256 Span-convertible by adding ::data()
This commit is contained in:
parent
131a2f0337
commit
567825049f
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue