diff --git a/diff-delta.c b/diff-delta.c
index faf96e47130e3a2af26f55fc1173874f078617fc..3af583536f2ee9f2d1f2fd699148ff16166dc932 100644 (file)
--- a/diff-delta.c
+++ b/diff-delta.c
};
struct delta_index {
+ unsigned long memsize;
const void *src_buf;
unsigned long src_size;
unsigned int hash_mask;
mem = hash + hsize;
entry = mem;
+ index->memsize = memsize;
index->src_buf = buf;
index->src_size = bufsize;
index->hash_mask = hmask;
free(index);
}
+unsigned long sizeof_delta_index(struct delta_index *index)
+{
+ if (index)
+ return index->memsize;
+ else
+ return 0;
+}
+
/*
* The maximum size for any opcode sequence, including the initial header
* plus Rabin window plus biggest copy.