]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fastbuf.h
Created a header which will contain description of all data structures
[libucw.git] / lib / fastbuf.h
index 77345c2aaa438370def244669fbb7dab2821b589..f1f0239ae8dac3177855a5919502d287e823353f 100644 (file)
@@ -307,6 +307,12 @@ bputsn(struct fastbuf *f, byte *b)
   bputc(f, '\n');
 }
 
+/* Direct I/O on buffers */
+
+int bdirect_read(struct fastbuf *f, byte **buf);
+int bdirect_write_prepare(struct fastbuf *f, byte **buf);
+void bdirect_write_commit(struct fastbuf *f, byte *pos);
+
 /* Depending on compile-time configuration, we select the right function for reading/writing of file offsets */
 
 #ifdef SHERLOCK_CONFIG_LARGE_DB