/* Copyright (c) 2017-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "hex-binary.h"
#include "qp-encoder.h"
#include "istream-private.h"
#include "istream-qp.h"
struct qp_encoder_istream {
};
bool close_parent)
{
(struct qp_encoder_istream *)stream;
if (close_parent)
}
{
(struct qp_encoder_istream *)stream;
const unsigned char *data;
int ret;
for(;;) {
}
/* stream buffer still at maximum */
return -2;
}
/* if something is already interpolated, return as much of it as
we can */
/* only return up to max_buffer_size bytes, even when buffer
actually has more, as not to confuse the caller */
} else {
}
}
/* need to read more input */
if (ret == 0)
return ret;
return ret;
}
}
}
static void
{
(struct qp_encoder_istream *)stream;
/* seeking backwards - go back to beginning and seek
forward from there. */
}
}
enum qp_encoder_flag flags)
{
i_stream_get_fd(input), 0);
}