31 lines
861 B
C++
31 lines
861 B
C++
|
/***
|
||
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: BasicCompression.hpp
|
||
|
Date: 2021-6-9
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::Compression
|
||
|
{
|
||
|
/**
|
||
|
Compresses an in memory blob with zstandard
|
||
|
*/
|
||
|
AUKN_SYM bool Compress(const void *buffer, AuUInt32 length, AuList<AuUInt8> &out, int compressionLevel = 3);
|
||
|
|
||
|
/**
|
||
|
Compresses an in memory blob with zstandard
|
||
|
*/
|
||
|
AUKN_SYM bool Compress(const AuList<AuUInt8> &in, AuList<AuUInt8> &out, int compressionLevel = 3);
|
||
|
|
||
|
/**
|
||
|
Decompresses an in memory blob with zstandard
|
||
|
*/
|
||
|
AUKN_SYM bool Decompress(const void *buffer, AuUInt32 length, AuList<AuUInt8> &out);
|
||
|
|
||
|
/**
|
||
|
Decompresses an in memory blob with zstandard
|
||
|
*/
|
||
|
AUKN_SYM bool Decompress(const AuList<AuUInt8> &in, AuList<AuUInt8> &out);
|
||
|
}
|