Your company here, and a link to your site. Click to find out more.

iob_addbuf - Man Page

add buffer to I/O batch


#include <iob.h>

int iob_addbuf(io_batch* b,const void* buf,uint64 n);


iob_addbuf schedules n bytes starting at buf to be written with the I/O batch b.

Use iob_addbuf_free if you want the buffer to be deallocated automatically by iob_reset.

Return Value

Returns 1 on success, 0 on failure.

See Also

iob_reset(3), iob_send(3), iob_addbuf_free(3), iob_adds(3), iob_addfile(3)

Referenced By

iob_addbuf_free(3), iob_addfile(3), iob_addfile_close(3), iob_adds(3), iob_adds_free(3), iob_new(3), iob_prefetch(3), iob_send(3).