summaryrefslogtreecommitdiffstats
path: root/third_party/lzma_sdk/Delta.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/lzma_sdk/Delta.h')
-rw-r--r--third_party/lzma_sdk/Delta.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/third_party/lzma_sdk/Delta.h b/third_party/lzma_sdk/Delta.h
new file mode 100644
index 0000000..2fa54ad
--- /dev/null
+++ b/third_party/lzma_sdk/Delta.h
@@ -0,0 +1,19 @@
+/* Delta.h -- Delta converter
+2013-01-18 : Igor Pavlov : Public domain */
+
+#ifndef __DELTA_H
+#define __DELTA_H
+
+#include "7zTypes.h"
+
+EXTERN_C_BEGIN
+
+#define DELTA_STATE_SIZE 256
+
+void Delta_Init(Byte *state);
+void Delta_Encode(Byte *state, unsigned delta, Byte *data, SizeT size);
+void Delta_Decode(Byte *state, unsigned delta, Byte *data, SizeT size);
+
+EXTERN_C_END
+
+#endif