People who code: we want your input. Take the Survey

New answers tagged

0

To better understand it is better to include part of the function function stringToBytes32(string memory source) public pure returns (bytes32 result) { // .. assembly { result := mload(add(source, 32)) } } source is a memory string so the first 32 bytes contains the length and data follows. Then add(source, 32) skips the size portion of ...


Top 50 recent answers are included