> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unvest.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Arrays.sol

# Arrays

[Git Source](https://github.com/Unvest/protocol/blob/10af66632cb2249fdd76dc9760d2679b39ca2a8f/src/libraries/Arrays.sol)

*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.*

```solidity theme={null}
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.*

```solidity theme={null}
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.*

```solidity theme={null}
function unsafeMemoryAccess(uint256[] memory arr, uint256 pos) internal pure returns (uint256 res);
```

## Structs

### AddressSlot

```solidity theme={null}
struct AddressSlot {
    address value;
}
```

### Uint256Slot

```solidity theme={null}
struct Uint256Slot {
    uint256 value;
}
```
