2010-11-16 23:36:37 +01:00
|
|
|
/** @file
|
|
|
|
Header file for compression routine.
|
|
|
|
|
2011-03-25 22:22:20 +01:00
|
|
|
Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:07:06 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2010-11-16 23:36:37 +01:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _EFI_SHELL_COMPRESS_H_
|
|
|
|
#define _EFI_SHELL_COMPRESS_H_
|
|
|
|
|
|
|
|
/**
|
|
|
|
The compression routine.
|
|
|
|
|
2011-09-02 10:05:34 +02:00
|
|
|
@param[in] SrcBuffer The buffer containing the source data.
|
|
|
|
@param[in] SrcSize Number of bytes in SrcBuffer.
|
|
|
|
@param[in] DstBuffer The buffer to put the compressed image in.
|
|
|
|
@param[in, out] DstSize On input the size (in bytes) of DstBuffer, on
|
|
|
|
return the number of bytes placed in DstBuffer.
|
2010-11-16 23:36:37 +01:00
|
|
|
|
|
|
|
@retval EFI_SUCCESS The compression was sucessful.
|
|
|
|
@retval EFI_BUFFER_TOO_SMALL The buffer was too small. DstSize is required.
|
|
|
|
**/
|
|
|
|
EFI_STATUS
|
|
|
|
Compress (
|
|
|
|
IN VOID *SrcBuffer,
|
|
|
|
IN UINT64 SrcSize,
|
|
|
|
IN VOID *DstBuffer,
|
|
|
|
IN OUT UINT64 *DstSize
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|