]>
Commit | Line | Data |
---|---|---|
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 | |
21 | @param[in] SrcBuffer The buffer containing the source data.\r | |
3737ac2b | 22 | @param[in] SrcSize Number of bytes in SrcBuffer.\r |
5d73d92f | 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 | |
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 | |
30 | EFI_STATUS\r | |
31 | EFIAPI\r | |
32 | Compress (\r | |
33 | IN VOID *SrcBuffer,\r | |
34 | IN UINT64 SrcSize,\r | |
35 | IN VOID *DstBuffer,\r | |
36 | IN OUT UINT64 *DstSize\r | |
37 | );\r | |
38 | \r | |
39 | #endif\r | |
40 | \r |