summaryrefslogtreecommitdiff
path: root/ewah/ewok.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2015-03-08 10:12:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-12 20:45:16 (GMT)
commitbe0d9d532326a81d761913e3ec9e2e7c62eeca7b (patch)
tree520de59deed0808f4d7c40658480519dd50e6302 /ewah/ewok.h
parent27b099ae8742f014700edba92036db288750e44a (diff)
downloadgit-be0d9d532326a81d761913e3ec9e2e7c62eeca7b.zip
git-be0d9d532326a81d761913e3ec9e2e7c62eeca7b.tar.gz
git-be0d9d532326a81d761913e3ec9e2e7c62eeca7b.tar.bz2
ewah: add convenient wrapper ewah_serialize_strbuf()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ewah/ewok.h')
-rw-r--r--ewah/ewok.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ewah/ewok.h b/ewah/ewok.h
index 13c6e20..e732525 100644
--- a/ewah/ewok.h
+++ b/ewah/ewok.h
@@ -30,6 +30,7 @@
# define ewah_calloc xcalloc
#endif
+struct strbuf;
typedef uint64_t eword_t;
#define BITS_IN_WORD (sizeof(eword_t) * 8)
@@ -98,6 +99,7 @@ int ewah_serialize_to(struct ewah_bitmap *self,
void *out);
int ewah_serialize(struct ewah_bitmap *self, int fd);
int ewah_serialize_native(struct ewah_bitmap *self, int fd);
+int ewah_serialize_strbuf(struct ewah_bitmap *self, struct strbuf *);
int ewah_deserialize(struct ewah_bitmap *self, int fd);
int ewah_read_mmap(struct ewah_bitmap *self, const void *map, size_t len);