Function arrayCastPipe

Given a pipe chain whose window is a straight array, create a pipe chain that converts the array to another array type.

auto auto arrayCastPipe(T, Chain) (
  Chain c
if (isIopipe!Chain && isDynamicArray!(WindowType!Chain));


This new pipe chain handles any alignment issues when partial elements have been extended/released. Also, the size of the new element type must be a multiple of, or divide evenly into, the original array.


T Element type for new pipe chain window
c Source pipe chain to use for new chain.


New pipe chain with new array type.