]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.h
ShellPkg/[hex]edit: use SimpleTextInEx to read console
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / Compress.h
CommitLineData
5d73d92f 1/** @file\r
2 Header file for compression routine.\r
3\r
3737ac2b 4 Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.<BR>\r
5d73d92f 5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _EFI_SHELL_COMPRESS_H_\r
16#define _EFI_SHELL_COMPRESS_H_\r
17\r
18/**\r
19 The compression routine.\r
20\r
4ff7e37b
ED
21 @param[in] SrcBuffer The buffer containing the source data.\r
22 @param[in] SrcSize Number of bytes in SrcBuffer.\r
23 @param[in] DstBuffer The buffer to put the compressed image in.\r
24 @param[in, out] DstSize On input the size (in bytes) of DstBuffer, on\r
25 return the number of bytes placed in DstBuffer.\r
5d73d92f 26\r
27 @retval EFI_SUCCESS The compression was sucessful.\r
28 @retval EFI_BUFFER_TOO_SMALL The buffer was too small. DstSize is required.\r
29**/\r
30EFI_STATUS\r
5d73d92f 31Compress (\r
32 IN VOID *SrcBuffer,\r
33 IN UINT64 SrcSize,\r
34 IN VOID *DstBuffer,\r
35 IN OUT UINT64 *DstSize\r
36 );\r
37\r
38#endif\r
39\r