| parrotcode: IO buffer layer | |
| Contents | C | 

src/io/io_buf.c - IO buffer layer

The "buf" layer of Parrot IO. Buffering and all the fun stuff.

static INTVAL PIO_buf_initInit function.
Initializes buffering.static ParrotIO *PIO_buf_openOpen function.static INTVAL PIO_buf_setbufSetBuf function.SetBuf calls down the stack,
top layer wins.
This doesn't mean other layers can't buffer,
I just need to think about the mechanism for buffer control or if it even makes sense this way.
Most layers will not implement SetBuf.static INTVAL PIO_buf_setlinebufSetLineBuf function.static ParrotIO *PIO_buf_fdopenFDOpen function.static INTVAL PIO_buf_closeClose function.static INTVAL PIO_buf_flushFlush function.static size_t PIO_buf_fill_readbufFill function.static size_t PIO_buf_readRead function.static size_t PIO_buf_peekstatic size_t PIO_buf_readlinePIO_buf_read() to do line buffered reading if that is what is required.static size_t PIO_buf_writeWrite function.static PIOOFF_T PIO_buf_seekSeek function.static PIOOFF_T PIO_buf_tellTell function.
src/io/io_passdown.c, src/io/io_stdio.c, src/io/io_unix.c, src/io/io_win32.c, src/io/io.c, src/io/io_private.h.

Initially written by Melvin Smith.
Some ideas from AT&T SFIO.
|  |   |