| 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.

PIO_buf_initInit function.
Initializes buffering.PIO_buf_openOpen function.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.PIO_buf_setlinebufSetLineBuf function.PIO_buf_fdopenFDOpen function.PIO_buf_closeClose function.PIO_buf_flushFlush function.PIO_buf_fill_readbufFill function.PIO_buf_readRead function.PIO_buf_peekPIO_buf_readlinePIO_buf_read() to do line buffered reading if that is what is required.PIO_buf_writeWrite function.PIO_buf_seekSeek function.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.
|
|
|