diff --git a/iob.h b/iob.h index d555e26..8bfb30a 100644 --- a/iob.h +++ b/iob.h @@ -23,7 +23,9 @@ typedef struct io_batch { io_batch* iob_new(int hint_entries); int iob_addbuf(io_batch* b,const void* buf,uint64 n); +int iob_addbuf_free(io_batch* b,const void* buf,uint64 n); int iob_adds(io_batch* b,const char* s); +int iob_adds_free(io_batch* b,const char* s); int iob_addfile(io_batch* b,int64 fd,uint64 off,uint64 n); int64 iob_send(int64 s,io_batch* b); void iob_reset(io_batch* b);