UACME/Source/Akagi/compress.h

49 lines
1.2 KiB
C
Raw Normal View History

/*******************************************************************************
*
* (C) COPYRIGHT AUTHORS, 2014 - 2016
*
* TITLE: COMPRESS.H
*
2016-05-29 08:05:10 +00:00
* VERSION: 2.20
*
2016-05-29 08:05:10 +00:00
* DATE: 20 Apr 2016
*
* Prototypes and definitions for compression.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* PARTICULAR PURPOSE.
*
*******************************************************************************/
#pragma once
typedef PVOID(*pfnDecompressPayload)(
_In_ PVOID CompressedBuffer,
_In_ ULONG CompressedBufferSize,
_Inout_ PULONG DecompressedBufferSize
);
PUCHAR CompressBufferLZNT1(
_In_ PUCHAR SrcBuffer,
_In_ ULONG SrcSize,
_Inout_ PULONG FinalCompressedSize
);
PUCHAR DecompressBufferLZNT1(
_In_ PUCHAR CompBuffer,
_In_ ULONG CompSize,
_In_ ULONG UncompressedBufferSize,
_Inout_ PULONG FinalUncompressedSize
);
VOID CompressPayload(
VOID
);
PVOID DecompressPayload(
_In_ PVOID CompressedBuffer,
_In_ ULONG CompressedBufferSize,
_Inout_ PULONG DecompressedBufferSize
);