Skip to content

Commit

Permalink
tmp: Docs for basic types
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Jul 22, 2019
1 parent 97b5901 commit 4f71fe0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/evmc/evmc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,26 @@
/// @ingroup cpp
namespace evmc
{

/// The big-endian 160-bit hash suitable for keeping an Ethereum address.
///
/// This type wraps C ::evmc_address to make sure objects of this type are always initialized.
struct address : evmc_address
{
/// Default and converting constructor.
///
/// Initializes bytes to zeros if not other @p init value provided.
constexpr address(evmc_address init = {}) noexcept : evmc_address{init} {}
};

/// The fixed size array of 32 bytes for storing 256-bit EVM values.
///
/// This type wraps C ::evmc_bytes32 to make sure objects of this type are always initialized.
struct bytes32 : evmc_bytes32
{
/// Default and converting constructor.
///
/// Initializes bytes to zeros if not other @p init value provided.
constexpr bytes32(evmc_bytes32 init = {}) noexcept : evmc_bytes32{init} {}
};

Expand Down

0 comments on commit 4f71fe0

Please sign in to comment.