blob: a1530d209b144c6859574524b98ffa9fc518c719 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <skalibs/buffer.h>
#include <skalibs/diuint.h>
#include <skalibs/siovec.h>
int buffer_putv (buffer *b, siovec_t const *v, unsigned int n)
{
diuint w = DIUINT_ZERO ;
if (!buffer_putvall(b, v, n, &w)) return -1 ;
return (int)(siovec_len(v, w.left) + w.right) ;
}
|