Skip to content

Commit 1ed2c98

Browse files
committed
Add transaction_identifier::size to allow Span conversion
1 parent 1ec6bbe commit 1ed2c98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/transaction_identifier.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class transaction_identifier
4444
constexpr void SetNull() { m_wrapped.SetNull(); }
4545
std::string GetHex() const { return m_wrapped.GetHex(); }
4646
std::string ToString() const { return m_wrapped.ToString(); }
47+
static constexpr auto size() { return decltype(m_wrapped)::size(); }
4748
constexpr const std::byte* data() const { return reinterpret_cast<const std::byte*>(m_wrapped.data()); }
4849
constexpr const std::byte* begin() const { return reinterpret_cast<const std::byte*>(m_wrapped.begin()); }
4950
constexpr const std::byte* end() const { return reinterpret_cast<const std::byte*>(m_wrapped.end()); }

0 commit comments

Comments
 (0)