ostream-buffer.c revision 2454dfa32c93c20a8522c6ed42fe057baaac9f9a
/* Copyright (c) 2002-2017 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "ostream-private.h"
struct buffer_ostream {
struct ostream_private ostream;
bool seeked;
};
{
return 1;
}
static int
{
return 0;
}
static ssize_t
{
unsigned int i;
for (i = 0; i < iov_count; i++) {
ret += n;
break;
}
return ret;
}
{
struct buffer_ostream *bstream;
/* we don't set buffer as blocking, because if max_buffer_size is
changed it can get truncated. this is used in various places in
unit tests. */
return output;
}