blob: f27d054aea7480e111b6f570afbbf6818feb7be2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* ISC license. */
#include <sys/types.h>
#include <sys/uio.h>
#include <skalibs/siovec.h>
#include <skalibs/cbuffer.h>
size_t cbuffer_getv (cbuffer_t *b, struct iovec const *v, unsigned int n)
{
struct iovec vsrc[2] ;
size_t w ;
cbuffer_rpeek(b, vsrc) ;
w = siovec_deal(v, n, vsrc, 2) ;
return cbuffer_RSEEK(b, w) ;
}
|