Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/libhamcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Memory.h')
-rw-r--r--Memory.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Memory.h b/Memory.h
new file mode 100644
index 0000000..afb7655
--- /dev/null
+++ b/Memory.h
@@ -0,0 +1,17 @@
+#ifndef MEMORY_H
+#define MEMORY_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+#ifdef BYTE_ORDER_BIG_ENDIAN
+#define BigEndian32
+#else
+#define BigEndian32 Swap32
+#endif
+
+size_t CompressionBufferSize(const size_t original_size);
+
+uint32_t Swap32(const uint32_t value);
+
+#endif