]> mj.ucw.cz Git - libucw.git/blob - lib/buck2obj.h
MJ's objections:
[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 struct buck2obj_buf *buck2obj_alloc(uns max_len, struct mempool *mp);
10 void buck2obj_free(struct buck2obj_buf *buf);
11 struct odes *buck2obj_convert(struct buck2obj_buf *buf, uns buck_type, struct fastbuf *body);
12   /* If BCONFIG_CAN_OVERWRITE(body)==2, then the buffer of body has probably
13    * been tampered (unless the bucket is larger than the buffer).  In such a
14    * case, you must call bflush(body) before you do anything else than
15    * sequential read.  */