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 arrayCastPipe(T, Chain)
(
Chain c
) @safe
if (isIopipe!Chain && isDynamicArray!(WindowType!Chain));
Note
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.
Parameters
Name | Description |
---|---|
T | Element type for new pipe chain window |
c | Source pipe chain to use for new chain. |
Returns
New pipe chain with new array type.