cpp: Add evmc::uint256be alias

This commit is contained in:
Paweł Bylica 2019-07-22 15:08:05 +02:00
parent 18e6dabe73
commit 366b5ad0fb
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ struct bytes32 : evmc_bytes32
constexpr inline explicit operator bool() const noexcept; constexpr inline explicit operator bool() const noexcept;
}; };
/// The alias for evmc::bytes32 to represent a big-endian 256-bit integer.
using uint256be = bytes32;
/// Loads 64 bits / 8 bytes of data from the given @p bytes array in big-endian order. /// Loads 64 bits / 8 bytes of data from the given @p bytes array in big-endian order.
constexpr inline uint64_t load64be(const uint8_t* bytes) noexcept constexpr inline uint64_t load64be(const uint8_t* bytes) noexcept
{ {