Skip to content

Commit

Permalink
Add transaction_identifier::size to allow Span conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
dergoegge committed Feb 27, 2024
1 parent 1ec6bbe commit 1ed2c98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/transaction_identifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class transaction_identifier
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()); }
Expand Down

0 comments on commit 1ed2c98

Please sign in to comment.