Libraries
Arrays.sol
Arrays
Collection of functions related to array types.
This is an extract from OpenZeppelin Arrays util contract.
Functions
unsafeMemoryAccess
Access an array in an “unsafe” way. Skips solidity “index-out-of-range” check.
function unsafeMemoryAccess(address[] memory arr, uint256 pos) internal pure returns (address res);
unsafeMemoryAccess
Access an array in an “unsafe” way. Skips solidity “index-out-of-range” check.
function unsafeMemoryAccess(bytes32[] memory arr, uint256 pos) internal pure returns (bytes32 res);
unsafeMemoryAccess
Access an array in an “unsafe” way. Skips solidity “index-out-of-range” check.
function unsafeMemoryAccess(uint256[] memory arr, uint256 pos) internal pure returns (uint256 res);
Structs
AddressSlot
struct AddressSlot {
address value;
}
Uint256Slot
struct Uint256Slot {
uint256 value;
}