TianoCore EDK2 master
Loading...
Searching...
No Matches
Compress.h File Reference

Go to the source code of this file.

Functions

EFI_STATUS Compress (IN VOID *SrcBuffer, IN UINT64 SrcSize, IN VOID *DstBuffer, IN OUT UINT64 *DstSize)
 

Detailed Description

Header file for compression routine.

Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Compress.h.

Function Documentation

◆ Compress()

EFI_STATUS Compress ( IN VOID *  SrcBuffer,
IN UINT64  SrcSize,
IN VOID *  DstBuffer,
IN OUT UINT64 *  DstSize 
)

The compression routine.

Parameters
[in]SrcBufferThe buffer containing the source data.
[in]SrcSizeNumber of bytes in SrcBuffer.
[in]DstBufferThe buffer to put the compressed image in.
[in,out]DstSizeOn input the size (in bytes) of DstBuffer, on return the number of bytes placed in DstBuffer.
Return values
EFI_SUCCESSThe compression was successful.
EFI_BUFFER_TOO_SMALLThe buffer was too small. DstSize is required.

Definition at line 1324 of file Compress.c.