The allocator to use for managing the buffer
The type of the input stream. This must have a function read that can read into the buffer's window.
The input stream to use. If not specified, then a NullDev source is assumed.
Arguments passed to the allocator (for allocators that need initialization)
An iopipe that uses the given buffer to read data from the given device source. The version which takes no parameter uses a NullDev as a source.
Create a buffer to manage the data from the given source, and wrap into an iopipe.