]>
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 |
56ba3746 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
5d73d92f | 6 | \r |
7 | **/\r | |
8 | \r | |
9 | #ifndef _EFI_SHELL_COMPRESS_H_\r | |
10 | #define _EFI_SHELL_COMPRESS_H_\r | |
11 | \r | |
12 | /**\r | |
13 | The compression routine.\r | |
14 | \r | |
4ff7e37b ED |
15 | @param[in] SrcBuffer The buffer containing the source data.\r |
16 | @param[in] SrcSize Number of bytes in SrcBuffer.\r | |
17 | @param[in] DstBuffer The buffer to put the compressed image in.\r | |
18 | @param[in, out] DstSize On input the size (in bytes) of DstBuffer, on\r | |
19 | return the number of bytes placed in DstBuffer.\r | |
5d73d92f | 20 | \r |
21 | @retval EFI_SUCCESS The compression was sucessful.\r | |
22 | @retval EFI_BUFFER_TOO_SMALL The buffer was too small. DstSize is required.\r | |
23 | **/\r | |
24 | EFI_STATUS\r | |
5d73d92f | 25 | Compress (\r |
26 | IN VOID *SrcBuffer,\r | |
27 | IN UINT64 SrcSize,\r | |
28 | IN VOID *DstBuffer,\r | |
29 | IN OUT UINT64 *DstSize\r | |
30 | );\r | |
31 | \r | |
32 | #endif\r |