]> mj.ucw.cz Git - libucw.git/blobdiff - lib/buck2obj.h
added buck2obj_realloc(), it is automatically called when needed
[libucw.git] / lib / buck2obj.h
index d98364e4f2674d7adbfc545dfe3b4617cdbbe273..0a7d0c05bca253c972bf9a23781f8fbcd0264593 100644 (file)
@@ -8,4 +8,9 @@ struct buck2obj_buf;
 
 struct buck2obj_buf *buck2obj_alloc(uns max_len, struct mempool *mp);
 void buck2obj_free(struct buck2obj_buf *buf);
+void buck2obj_realloc(struct buck2obj_buf *buf, uns max_len);
 struct odes *buck2obj_convert(struct buck2obj_buf *buf, uns buck_type, struct fastbuf *body);
+  /* If BCONFIG_CAN_OVERWRITE(body)==2, then the buffer of body has probably
+   * been tampered (unless the bucket is larger than the buffer).  In such a
+   * case, you must call bflush(body) before you do anything else than
+   * sequential read.  */