1 /*****************************************************************************/
5 /* Decompression routine for the 'lz4' format */
9 /* (C) 2017 Mega Cat Studios */
11 /* This software is provided 'as-is', without any expressed or implied */
12 /* warranty. In no event will the authors be held liable for any damages */
13 /* arising from the use of this software. */
15 /* Permission is granted to anyone to use this software for any purpose, */
16 /* including commercial applications, and to alter it and redistribute it */
17 /* freely, subject to the following restrictions: */
19 /* 1. The origin of this software must not be misrepresented; you must not */
20 /* claim that you wrote the original software. If you use this software */
21 /* in a product, an acknowledgment in the product documentation would be */
22 /* appreciated but is not required. */
23 /* 2. Altered source versions must be plainly marked as such, and must not */
24 /* be misrepresented as being the original software. */
25 /* 3. This notice may not be removed or altered from any source */
28 /*****************************************************************************/
35 void __fastcall__ decompress_lz4 (const unsigned char* src, unsigned char* const dst,
36 const unsigned short uncompressed_size);
37 /* Decompresses the source buffer into the destination buffer.
38 ** The size of the decompressed data must be known in advance, LZ4
39 ** does not include any terminator in-stream.