Expand description
Fixed-size array handler for the storage traits.
§Storage Layout
Fixed-size arrays [T; N] use Solidity-compatible array storage:
- Base slot: Arrays start directly at
base_slot(not at keccak256) - Data slots: Elements are stored sequentially, either packed or unpacked
§Packing Strategy
- Packed: When
T::BYTES <= 16, multiple elements fit in one slot - Unpacked: When
T::BYTES > 16or doesn’t divide 32, each element uses full slot(s)
Structs§
- Array
Handler - Type-safe handler for accessing fixed-size arrays
[T; N]in storage.