IoTeX client
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
iotex::abi::InputOutputAbi Class Reference

A class that represents the ABI for an input or output field of a contract funciton. More...

#include <abi.h>

Public Member Functions

bool IsDynamic ()
 Checks whether the type of this input or output is dynamic or static. More...
 
bool isInteger () const
 Checks if the type of this input or output is an integer (int or uint) type of any size. More...
 

Static Public Member Functions

static ResultCode getTypeAndSizeFromString (IotexString &str, InputOutputAbi &out)
 Parses the size and type from the input/output "type" property in the ABI JSON. More...
 

Public Attributes

IotexString name
 
EthereumTypeName type
 
uint32_t sizeBytes
 
EthereumTypeName arrayType
 
uint32_t arrayTypeSizeBytes = 0
 
uint32_t arraySize
 

Detailed Description

A class that represents the ABI for an input or output field of a contract funciton.

Member Function Documentation

◆ getTypeAndSizeFromString()

ResultCode iotex::abi::InputOutputAbi::getTypeAndSizeFromString ( IotexString &  str,
InputOutputAbi out 
)
static

Parses the size and type from the input/output "type" property in the ABI JSON.

Parameters
str
out
Returns
ResultCode

◆ IsDynamic()

bool iotex::abi::InputOutputAbi::IsDynamic ( )
inline

Checks whether the type of this input or output is dynamic or static.

Returns
true if the type is dynamic
false if the type is static

◆ isInteger()

bool iotex::abi::InputOutputAbi::isInteger ( ) const
inline

Checks if the type of this input or output is an integer (int or uint) type of any size.

Returns
true if the type is an integer
false if the type is not an integer

The documentation for this class was generated from the following files: