mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
Add transaction_identifier::size to allow Span conversion
This commit is contained in:
parent
1ec6bbeb8d
commit
1ed2c98297
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ public:
|
|||
constexpr void SetNull() { m_wrapped.SetNull(); }
|
||||
std::string GetHex() const { return m_wrapped.GetHex(); }
|
||||
std::string ToString() const { return m_wrapped.ToString(); }
|
||||
static constexpr auto size() { return decltype(m_wrapped)::size(); }
|
||||
constexpr const std::byte* data() const { return reinterpret_cast<const std::byte*>(m_wrapped.data()); }
|
||||
constexpr const std::byte* begin() const { return reinterpret_cast<const std::byte*>(m_wrapped.begin()); }
|
||||
constexpr const std::byte* end() const { return reinterpret_cast<const std::byte*>(m_wrapped.end()); }
|
||||
|
|
Loading…
Add table
Reference in a new issue