referrerpolicy=no-referrer-when-downgrade

Module Memory

Source
Expand description

Module containing a contract’s types and functions.

contract Memory {
    function expandMemory(uint256 memorySize) public pure returns (bool success) { <stmts> }
    function testMemory() public { <stmts> }
    function testMsize(uint256 offset) public returns (uint256) { <stmts> }
    function testMcopy(uint256 dstOffset, uint256 offset, uint256 size, uint256 value) public returns (uint256) { <stmts> }
}

Structs§

expandMemoryCall
@notice Expands memory to the specified size by writing a byte at that offset @param memorySize The memory size in bytes to expand to Function with signature expandMemory(uint256) and selector 0xf96ef556.
expandMemoryReturn
@notice Expands memory to the specified size by writing a byte at that offset @param memorySize The memory size in bytes to expand to Container type for the return parameters of the expandMemory(uint256) function.
testMcopyCall
Function with signature testMcopy(uint256,uint256,uint256,uint256) and selector 0x95970824.
testMcopyReturn
Container type for the return parameters of the testMcopy(uint256,uint256,uint256,uint256) function.
testMemoryCall
Function with signature testMemory() and selector 0x80c1f5f6.
testMemoryReturn
Container type for the return parameters of the testMemory() function.
testMsizeCall
Function with signature testMsize(uint256) and selector 0x19bb03ff.
testMsizeReturn
Container type for the return parameters of the testMsize(uint256) function.

Enums§

MemoryCalls
Container for all the Memory function calls.