Encoding

Git Source

This library contains functions for decoding data into common types

Functions

toUint256

Decodes a bytes array into a uint256

function toUint256(bytes memory _data) internal pure returns (uint256 _uint256);

toInt256

Decodes a bytes array into an int256

function toInt256(bytes memory _data) internal pure returns (int256 _int256);

toAddress

Decodes a bytes array into an address

function toAddress(bytes memory _data) internal pure returns (address _address);

toBool

Decodes a bytes array into a bool

function toBool(bytes memory _data) internal pure returns (bool _bool);