]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/Common/EfiCompress.h
3 Copyright (c) 2004, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Header file for compression routine
22 #ifndef _EFICOMPRESS_H
23 #define _EFICOMPRESS_H
28 #include <Common/UefiBaseTypes.h>
35 IN OUT UINT32
*DstSize
43 The compression routine.
47 SrcBuffer - The buffer storing the source data
48 SrcSize - The size of source data
49 DstBuffer - The buffer to store the compressed data
50 DstSize - On input, the size of DstBuffer; On output,
51 the size of the actual compressed data.
55 EFI_BUFFER_TOO_SMALL - The DstBuffer is too small. In this case,
56 DstSize contains the size needed.
57 EFI_SUCCESS - Compression is successful.
62 (*COMPRESS_FUNCTION
) (
66 IN OUT UINT32
*DstSize