/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/Foundation/Utilities/Compression.h
20 строк
959 B
Ingrater
Implement parameter coding guidelines in clang-tidy (#808)
18 фев 2023, 13:18
Не верифицирован
18 фев 2023, 13:18
3c98d47
Код
Авторство
О чём код?
#pragma once #include <Foundation/Basics.h> #include <Foundation/Containers/DynamicArray.h> ///\brief The compression method to be used enum class ezCompressionMethod : ezUInt16 { ZStd = 0 ///< Only available when ZStd support is enabled in the build (default) }; /// \brief This namespace contains utilities which can be used to compress and decompress data. namespace ezCompressionUtils { ///\brief Compresses the given data using the compression method eMethod into the dynamic array given in out_Data. EZ_FOUNDATION_DLL ezResult Compress(ezArrayPtr<const ezUInt8> uncompressedData, ezCompressionMethod method, ezDynamicArray<ezUInt8>& out_data); ///\brief Decompresses the given data using the compression method eMethod into the dynamic array given in out_Data. EZ_FOUNDATION_DLL ezResult Decompress(ezArrayPtr<const ezUInt8> compressedData, ezCompressionMethod method, ezDynamicArray<ezUInt8>& out_data); } // namespace ezCompressionUtils