We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toUint24
Why was the "toUint24" method removed?
Here is the rather simple code to implement it:
function toUint24(bytes memory _bytes, uint256 _start) internal pure returns (uint24) { require(_bytes.length >= _start + 3, "toUint24_outOfBounds"); uint24 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x3), _start)) } return tempUint; }
The text was updated successfully, but these errors were encountered:
The function toUint24 is needed sometimes.
Sorry, something went wrong.
nice
No branches or pull requests
Why was the "toUint24" method removed?
Here is the rather simple code to implement it:
The text was updated successfully, but these errors were encountered: