mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-26 09:57:56 +00:00
ec952fd2cb
Signed-off-by: xermicus <cyrill@parity.io>
17 lines
318 B
Solidity
17 lines
318 B
Solidity
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()
|
|
}
|
|
}
|
|
}
|