]> mj.ucw.cz Git - libucw.git/blob - lib/buck2obj.h
define BUCK2OBJ_INITIAL_MAX_LEN
[libucw.git] / lib / buck2obj.h
1 /*
2  *      Bucket -> Object converter
3  *
4  *      (c) 2004, Robert Spalek <robert@ucw.cz>
5  */
6
7 struct buck2obj_buf;
8
9 #define BUCK2OBJ_INITIAL_MAX_LEN        (1<<16)
10
11 struct buck2obj_buf *buck2obj_alloc(uns max_len, struct mempool *mp);
12 void buck2obj_free(struct buck2obj_buf *buf);
13 void buck2obj_realloc(struct buck2obj_buf *buf, uns max_len);
14 struct odes *buck2obj_convert(struct buck2obj_buf *buf, uns buck_type, struct fastbuf *body);
15   /* If BCONFIG_CAN_OVERWRITE(body)==2, then the buffer of body has probably
16    * been tampered (unless the bucket is larger than the buffer).  In such a
17    * case, you must call bflush(body) before you do anything else than
18    * sequential read.  */