]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/Common/Compress.h
2 Header file for compression routine.
3 Providing both EFI and Tiano Compress algorithms.
5 Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
16 #include "CommonLib.h"
17 #include <Common/UefiBaseTypes.h>
22 Tiano compression routine.
30 IN OUT UINT32
*DstSize
38 Efi compression routine.
46 IN OUT UINT32
*DstSize
54 The compression routine.
58 SrcBuffer - The buffer storing the source data
59 SrcSize - The size of source data
60 DstBuffer - The buffer to store the compressed data
61 DstSize - On input, the size of DstBuffer; On output,
62 the size of the actual compressed data.
66 EFI_BUFFER_TOO_SMALL - The DstBuffer is too small. In this case,
67 DstSize contains the size needed.
68 EFI_SUCCESS - Compression is successful.
69 EFI_OUT_OF_RESOURCES - No resource to complete function.
70 EFI_INVALID_PARAMETER - Parameter supplied is wrong.
75 (*COMPRESS_FUNCTION
) (
79 IN OUT UINT32
*DstSize