aboutsummaryrefslogtreecommitdiff
path: root/libbb/atlas_bb64.h
blob: d745a9b9d6c0a5620e7e25b6112a69e8458828db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright (c) 2013 RIPE NCC <atlas@ripe.net>
 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
 */

struct buf
{
        size_t offset;
        size_t size;
        size_t maxsize;
        char *buf;
        int fd;
};

void buf_init(struct buf *buf, int fd);
int buf_add(struct buf *buf, const void *data, size_t len );
int buf_add_b64(struct buf *buf, void *data, size_t len, int mime_nl);
void buf_cleanup(struct buf *buf);