cbuffer_putv.c (309B)
1 /* ISC license. */ 2 3 #include <sys/uio.h> 4 #include <skalibs/siovec.h> 5 #include <skalibs/cbuffer.h> 6 7 size_t cbuffer_putv (cbuffer *b, struct iovec const *v, unsigned int n) 8 { 9 struct iovec vdest[2] ; 10 size_t w ; 11 cbuffer_wpeek(b, vdest) ; 12 w = siovec_deal(vdest, 2, v, n) ; 13 return cbuffer_WSEEK(b, w) ; 14 }