summaryrefslogtreecommitdiff
path: root/indra/llmessage/patch_code.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
committerJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
commit420b91db29485df39fd6e724e782c449158811cb (patch)
treeb471a94563af914d3ed3edd3e856d21cb1b69945 /indra/llmessage/patch_code.h
Print done when done.
Diffstat (limited to 'indra/llmessage/patch_code.h')
-rw-r--r--indra/llmessage/patch_code.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/indra/llmessage/patch_code.h b/indra/llmessage/patch_code.h
new file mode 100644
index 0000000000..a18736df11
--- /dev/null
+++ b/indra/llmessage/patch_code.h
@@ -0,0 +1,28 @@
+/**
+ * @file patch_code.h
+ * @brief Function declarations for encoding and decoding patches.
+ *
+ * Copyright (c) 2000-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+
+#ifndef LL_PATCH_CODE_H
+#define LL_PATCH_CODE_H
+
+class LLBitPack;
+class LLGroupHeader;
+class LLPatchHeader;
+
+void init_patch_coding(LLBitPack &bitpack);
+void code_patch_group_header(LLBitPack &bitpack, LLGroupHeader *gopp);
+void code_patch_header(LLBitPack &bitpack, LLPatchHeader *ph, S32 *patch);
+void code_end_of_data(LLBitPack &bitpack);
+void code_patch(LLBitPack &bitpack, S32 *patch, S32 postquant);
+void end_patch_coding(LLBitPack &bitpack);
+
+void init_patch_decoding(LLBitPack &bitpack);
+void decode_patch_group_header(LLBitPack &bitpack, LLGroupHeader *gopp);
+void decode_patch_header(LLBitPack &bitpack, LLPatchHeader *ph);
+void decode_patch(LLBitPack &bitpack, S32 *patches);
+
+#endif