Plasma Engine  2.0
Loading...
Searching...
No Matches
Compression.h
1#pragma once
2
3#include <Foundation/Basics.h>
4#include <Foundation/Containers/DynamicArray.h>
5
7enum class plCompressionMethod : plUInt16
8{
9 ZStd = 0
10};
11
14{
16 PL_FOUNDATION_DLL plResult Compress(plArrayPtr<const plUInt8> uncompressedData, plCompressionMethod method, plDynamicArray<plUInt8>& out_data);
17
19 PL_FOUNDATION_DLL plResult Decompress(plArrayPtr<const plUInt8> compressedData, plCompressionMethod method, plDynamicArray<plUInt8>& out_data);
20} // namespace plCompressionUtils
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37
Definition DynamicArray.h:81
This namespace contains utilities which can be used to compress and decompress data.
Definition Compression.h:14
PL_FOUNDATION_DLL plResult Compress(plArrayPtr< const plUInt8 > uncompressedData, plCompressionMethod method, plDynamicArray< plUInt8 > &out_data)
Compresses the given data using the compression method eMethod into the dynamic array given in out_Da...
Definition Compression.cpp:72
PL_FOUNDATION_DLL plResult Decompress(plArrayPtr< const plUInt8 > compressedData, plCompressionMethod method, plDynamicArray< plUInt8 > &out_data)
Decompresses the given data using the compression method eMethod into the dynamic array given in out_...
Definition Compression.cpp:96
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54