]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/Common/Compress.h
3 Copyright (c) 2004 - 2006, 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.
19 Providing both EFI and Tiano Compress algorithms.
29 #include <Common/UefiBaseTypes.h>
34 Tiano compression routine.
42 IN OUT UINT32
*DstSize
50 Efi compression routine.
58 IN OUT UINT32
*DstSize
66 The compression routine.
70 SrcBuffer - The buffer storing the source data
71 SrcSize - The size of source data
72 DstBuffer - The buffer to store the compressed data
73 DstSize - On input, the size of DstBuffer; On output,
74 the size of the actual compressed data.
78 EFI_BUFFER_TOO_SMALL - The DstBuffer is too small. In this case,
79 DstSize contains the size needed.
80 EFI_SUCCESS - Compression is successful.
81 EFI_OUT_OF_RESOURCES - No resource to complete function.
82 EFI_INVALID_PARAMETER - Parameter supplied is wrong.
87 (*COMPRESS_FUNCTION
) (
91 IN OUT UINT32
*DstSize