Compress.h 971 B

1234567891011121314151617181920212223242526272829303132
  1. /** @file
  2. Header file for compression routine.
  3. Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _EFI_SHELL_COMPRESS_H_
  7. #define _EFI_SHELL_COMPRESS_H_
  8. /**
  9. The compression routine.
  10. @param[in] SrcBuffer The buffer containing the source data.
  11. @param[in] SrcSize Number of bytes in SrcBuffer.
  12. @param[in] DstBuffer The buffer to put the compressed image in.
  13. @param[in, out] DstSize On input the size (in bytes) of DstBuffer, on
  14. return the number of bytes placed in DstBuffer.
  15. @retval EFI_SUCCESS The compression was sucessful.
  16. @retval EFI_BUFFER_TOO_SMALL The buffer was too small. DstSize is required.
  17. **/
  18. EFI_STATUS
  19. Compress (
  20. IN VOID *SrcBuffer,
  21. IN UINT64 SrcSize,
  22. IN VOID *DstBuffer,
  23. IN OUT UINT64 *DstSize
  24. );
  25. #endif