Function asElemRange

Convert an io pipe into a range of elements of the pipe. This effectively converts an iopipe range of T into a range of T. Note that auto-decoding does NOT happen still, so converting a string into an input range produces a range of char. The range is extended when no more data is in the window.

auto asElemRange(ulong extendRequestSize = 0, Chain) (
  Chain c
)
if (isIopipe!Chain);

Note that the function may call extend once before returning, depending on whether there is any data present or not.

Parameters

NameDescription
extendRequestSize The value to pass to c.extend when calling in popFront
c The chain to use as backing for this range.