]>
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 - 2014, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
22 #include "CommonLib.h"
23 #include <Common/UefiBaseTypes.h>
28 Tiano compression routine.
36 IN OUT UINT32
*DstSize
44 Efi compression routine.
52 IN OUT UINT32
*DstSize
60 The compression routine.
64 SrcBuffer - The buffer storing the source data
65 SrcSize - The size of source data
66 DstBuffer - The buffer to store the compressed data
67 DstSize - On input, the size of DstBuffer; On output,
68 the size of the actual compressed data.
72 EFI_BUFFER_TOO_SMALL - The DstBuffer is too small. In this case,
73 DstSize contains the size needed.
74 EFI_SUCCESS - Compression is successful.
75 EFI_OUT_OF_RESOURCES - No resource to complete function.
76 EFI_INVALID_PARAMETER - Parameter supplied is wrong.
81 (*COMPRESS_FUNCTION
) (
85 IN OUT UINT32
*DstSize