* Low-level Base64 encoder
*/
+off_t base64_get_full_encoded_size(struct base64_encoder *enc ATTR_UNUSED,
+ off_t src_size)
+{
+ off_t out_size;
+
+ /* calculate size of encoded data */
+ out_size = MAX_BASE64_ENCODED_SIZE(src_size);
+
+ return out_size;
+}
+
static size_t
base64_encode_get_out_size(struct base64_encoder *enc, size_t src_size)
{
base64_encode_init(enc, b64);
}
+/* Translate the size of the full encoder input to the size of the encoder
+ output.
+ */
+off_t base64_get_full_encoded_size(struct base64_encoder *enc, off_t src_size);
/* Translate the size of the next input to the size of the output once encoded.
This yields the amount of data appended to the dest buffer by
base64_encode_more() with the indicated src_size. */