summaryrefslogtreecommitdiffstats
path: root/xxhash.h
diff options
context:
space:
mode:
Diffstat (limited to 'xxhash.h')
-rw-r--r--xxhash.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/xxhash.h b/xxhash.h
index c525e0b..afdf243 100644
--- a/xxhash.h
+++ b/xxhash.h
@@ -121,6 +121,18 @@ Memory will be freed by XXH32_digest().
*/
+int XXH32_sizeofState();
+XXH_errorcode XXH32_resetState(void* state_in, unsigned int seed);
+/*
+These functions are the basic elements of XXH32_init();
+The objective is to allow user application to make its own allocation.
+
+XXH32_sizeofState() is used to know how much space must be allocated by the application.
+This space must be referenced by a void* pointer.
+This pointer must be provided as 'state_in' into XXH32_resetState(), which initializes the state.
+*/
+
+
unsigned int XXH32_intermediateDigest (void* state);
/*
This function does the same as XXH32_digest(), generating a 32-bit hash,