|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_init
Initfunction. Initializes buffering.
static ParrotIO *PIO_buf_open
static INTVAL PIO_buf_setbuf
SetBufcalls 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
static INTVAL PIO_buf_setlinebuf
static ParrotIO *PIO_buf_fdopen
static INTVAL PIO_buf_close
static INTVAL PIO_buf_flush
static size_t PIO_buf_fill_readbuf
static size_t PIO_buf_read
static size_t PIO_buf_peek
static size_t PIO_buf_readline
PIO_buf_read()to do line buffered reading if that is what is required.
static size_t PIO_buf_write
static PIOOFF_T PIO_buf_seek
static PIOOFF_T PIO_buf_tell
Initially written by Melvin Smith.
Some ideas from AT&T SFIO.