]> mj.ucw.cz Git - libucw.git/blob - lib/buck2obj.h
4a12ea61a219e058c894a2a89c0636f604022d27
[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 struct mempool;
9
10 struct buck2obj_buf *buck2obj_alloc(void);
11 void buck2obj_free(struct buck2obj_buf *buf);
12 struct odes *obj_read_bucket(struct buck2obj_buf *buf, struct mempool *pool, uns buck_type, uns buck_len, struct fastbuf *body, uns *body_start);
13   /* If body_start != NULL, then only the header is parsed and *body_start is
14    * set to the position of the body. This function does a plenty of optimizations
15    * and if the body fastbuf is overwritable (body->can_overwrite_buffer), it can keep the
16    * attribute values stored on their original locations in the fastbuf's buffer.
17    * However, no such things are performed when reading the header only.
18    */