Files
revive/crates/integration/contracts/MSize.sol
T

21 lines
377 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
contract MSize {
uint[] public data;
function mSize() public pure returns (uint size) {
assembly {
size := msize()
}
}
function mStore100() public pure returns (uint size) {
assembly {
mstore(100, msize())
size := msize()
}
}
}