Functions
_uintToBool
converts a uint256 to a boolName | Type | Description |
---|---|---|
_x | uint256 | the uint256 to convert |
Name | Type | Description |
---|---|---|
_ans | bool | is false if _x is zero. True otherwise. |
_boolToUint
converts a bool to an uint256Name | Type | Description |
---|---|---|
_x | bool | the bool to convert |
_uintToAddr
converts a uint256 to an addressName | Type | Description |
---|---|---|
_x | uint256 | the uint256 to convert |
_uintToBytes
converts a uint256 to a bytesName | Type | Description |
---|---|---|
_x | uint256 | the uint256 to convert |
_extractStringData
Helper function to extract the actual string data from an ABI-encoded stringName | Type | Description |
---|---|---|
_encodedString | bytes | The ABI-encoded string to extract the data from |
Name | Type | Description |
---|---|---|
<none> | bytes | stringData The extracted string data (length + content) |
_extractDynamicArrayData
Extracts a dynamic array (length + values with their lengths) from ABI-encoded dataName | Type | Description |
---|---|---|
_encodedArray | bytes | The ABI-encoded array data |
Name | Type | Description |
---|---|---|
_result | bytes | The extracted array data |