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
Init
function.
Initializes buffering.static ParrotIO *PIO_buf_open
Open
function.static INTVAL PIO_buf_setbuf
SetBuf
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_setlinebuf
SetLineBuf
function.static ParrotIO *PIO_buf_fdopen
FDOpen
function.static INTVAL PIO_buf_close
Close
function.static INTVAL PIO_buf_flush
Flush
function.static size_t PIO_buf_fill_readbuf
Fill
function.static size_t PIO_buf_read
Read
function.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
Write
function.static PIOOFF_T PIO_buf_seek
Seek
function.static PIOOFF_T PIO_buf_tell
Tell
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.
|