From 274db26339488c2ceddc8fe305fb144194e0c96a Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 23 Mar 2020 16:15:36 -0700 Subject: [PATCH] Fix accidentally removed file. --- node/LZ4.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 node/LZ4.hpp diff --git a/node/LZ4.hpp b/node/LZ4.hpp new file mode 100644 index 000000000..227dce627 --- /dev/null +++ b/node/LZ4.hpp @@ -0,0 +1,26 @@ +/* + * Copyright (c)2013-2020 ZeroTier, Inc. + * + * Use of this software is governed by the Business Source License included + * in the LICENSE.TXT file in the project's root directory. + * + * Change Date: 2024-01-01 + * + * On the date above, in accordance with the Business Source License, use + * of this software will be governed by version 2.0 of the Apache License. + */ +/****/ + +#ifndef ZT_LZ4_HPP +#define ZT_LZ4_HPP + +#include "Constants.hpp" + +namespace ZeroTier { + +int LZ4_compress_fast(const char *source,char *dest,int inputSize,int maxOutputSize,int acceleration = 1) noexcept; +int LZ4_decompress_safe(const char *source,char *dest,int compressedSize,int maxDecompressedSize) noexcept; + +} // namespace ZeroTier + +#endif