Functions
_uintToBool
converts a uint256 to a bool| Name | 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 uint256| Name | Type | Description |
|---|---|---|
_x | bool | the bool to convert |
_uintToAddr
converts a uint256 to an address| Name | Type | Description |
|---|---|---|
_x | uint256 | the uint256 to convert |
_uintToBytes
converts a uint256 to a bytes| Name | Type | Description |
|---|---|---|
_x | uint256 | the uint256 to convert |
_extractStringData
Helper function to extract the actual string data from an ABI-encoded string| Name | 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 data| Name | Type | Description |
|---|---|---|
_encodedArray | bytes | The ABI-encoded array data |
| Name | Type | Description |
|---|---|---|
_result | bytes | The extracted array data |