schveiguy / iopipe

D language library for modular io
Boost Software License 1.0
77 stars 6 forks source link

Add method to extend an iopipe fully #8

Closed schveiguy closed 7 years ago

schveiguy commented 7 years ago

One may want a buffer of all the data an iopipe can read. The easiest thing to do is this:

while(iop.extend(0) != 0) {}

There should be a function that does this, similar to ensureElems.

schveiguy commented 7 years ago

Hm... ensureElems(size_t.max) would probably work too... Nevermind.