2 * Bucket -> Object converter
4 * (c) 2004, Robert Spalek <robert@ucw.cz>
9 #define BUCK2OBJ_INITIAL_MAX_LEN (1<<16)
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 *obj_read_bucket(struct buck2obj_buf *buf, uns buck_type, struct fastbuf *body, uns want_body);
15 /* If BCONFIG_CAN_OVERWRITE(body)==2, then the buffer of body has probably
16 * been tampered with (unless the bucket is larger than the buffer). In such
17 * a case, you must call bflush(body) before you do anything else than