toStaticArray_bytes14_2
Cast a dynamic array to a static array.
In memory static arrays are just dynamic arrays without the 32 length bytes, so this function moves the pointer to the first element of the dynamic array. If the length of the dynamic array is smaller than the static length, the function returns an uninitialized array to avoid memory corruption.
function toStaticArray_bytes14_2(bytes14[] memory _value) pure returns (bytes14[2] memory _result);
Parameters
Name | Type | Description |
---|---|---|
_value | bytes14[] | The dynamic array to cast. |
Returns
Name | Type | Description |
---|---|---|
_result | bytes14[2] | The static array. |