logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

iob_addbuf_free - add buffer to I/O batch, with deallocation

Description

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

       The buffer will automatically be deallocated by iob_reset.

Name

       iob_addbuf_free - add buffer to I/O batch, with deallocation

Return Value

       Returns 1 if successful, 0 if not.  In the failure case, the buffer was deallocated.

See Also

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

                                                                                              iob_addbuf_free(3)

Syntax

#include<libowfat/iob.h>

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

See Also