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:
authorDavide Beatrici <git@davidebeatrici.dev>2021-03-09 07:23:37 +0300
committerDavide Beatrici <git@davidebeatrici.dev>2021-03-09 07:23:37 +0300
commit95ae85a8ef45d11e222acc8021bc35c55ae39fa6 (patch)
tree3919d6e67187f14b6c1aa31f3e9ebed57b01a710 /Memory.h
parent2c6d6148939bc77d1a0e7d3d3fbbbc3409d05114 (diff)
Import project
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