toStaticArray_bytes14_2

Git Source

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

NameTypeDescription
_valuebytes14[]The dynamic array to cast.

Returns

NameTypeDescription
_resultbytes14[2]The static array.