From 567825049fb0e47e698dcaad9caa65693a6b42d3 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Thu, 18 Jun 2020 14:12:54 -0700 Subject: Make uint256 Span-convertible by adding ::data() --- src/uint256.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/uint256.h b/src/uint256.h index 0e0473a300..8ab747ef49 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -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]; -- cgit v1.2.3