在调用数据中仅存储外部函数的数组和结构参数这样的复杂类型吗?公共功能或内部功能中的复杂类型参数如何?
代码如下:
pramga solidity 0.4.24;
contract Hello {
// is paramter _x store in calldata?
function f1(uint[] _x) external pure {
//do something
}
// is paramter _y store in memory?
function f2(uint[] _y) public pure {
//do something
}
//is paramter _z store in memory?
function f3(uint[] _z) internal pure {
//do something
}
// how about value type _k to external function?
function f4(uint _k) external pure {
//do something
}
}