Documentation Index
Fetch the complete documentation index at: https://docs.forterulesengine.io/llms.txt
Use this file to discover all available pages before exploring further.
Git Source
Functions
_uintToBool
converts a uint256 to a bool
function _uintToBool(uint256 _x) internal pure returns (bool _ans);
Parameters
| Name | Type | Description |
|---|
_x | uint256 | the uint256 to convert |
Returns
| Name | Type | Description |
|---|
_ans | bool | is false if _x is zero. True otherwise. |
_boolToUint
converts a bool to an uint256
function _boolToUint(bool _x) internal pure returns (uint256 _ans);
Parameters
| Name | Type | Description |
|---|
_x | bool | the bool to convert |
_uintToAddr
converts a uint256 to an address
function _uintToAddr(uint256 _x) internal pure returns (address);
Parameters
| Name | Type | Description |
|---|
_x | uint256 | the uint256 to convert |
_uintToBytes
converts a uint256 to a bytes
function _uintToBytes(uint256 _x) internal pure returns (bytes memory);
Parameters
| Name | Type | Description |
|---|
_x | uint256 | the uint256 to convert |
Helper function to extract the actual string data from an ABI-encoded string
function _extractStringData(bytes memory _encodedString) internal pure returns (bytes memory);
Parameters
| Name | Type | Description |
|---|
_encodedString | bytes | The ABI-encoded string to extract the data from |
Returns
| Name | Type | Description |
|---|
<none> | bytes | stringData The extracted string data (length + content) |
Extracts a dynamic array (length + values with their lengths) from ABI-encoded data
function _extractDynamicArrayData(bytes memory _encodedArray) internal pure returns (bytes memory _result);
Parameters
| Name | Type | Description |
|---|
_encodedArray | bytes | The ABI-encoded array data |
Returns
| Name | Type | Description |
|---|
_result | bytes | The extracted array data |