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