mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-25 01:17:58 +00:00
21dd0abb8a
Signed-off-by: xermicus <cyrill@parity.io>
19 lines
351 B
Solidity
19 lines
351 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
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()
|
|
}
|
|
}
|
|
}
|