Function asInputRange

Convert an io pipe into a range, with each popFront releasing all the current data and extending a specified amount.

auto asInputRange(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 popFront
c The chain to use as backing for this range.