MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / EfiDecompress

Function EfiDecompress

BaseTools/Source/C/Common/Decompress.c:874–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872}
873
874EFI_STATUS
875EfiDecompress (
876 IN VOID *Source,
877 IN UINT32 SrcSize,
878 IN OUT VOID *Destination,
879 IN UINT32 DstSize,
880 IN OUT VOID *Scratch,
881 IN UINT32 ScratchSize
882 )
883/*++
884
885Routine Description:
886
887 The implementation of Efi Decompress().
888
889Arguments:
890
891 Source - The source buffer containing the compressed data.
892 SrcSize - The size of source buffer
893 Destination - The destination buffer to store the decompressed data
894 DstSize - The size of destination buffer.
895 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
896 ScratchSize - The size of scratch buffer.
897
898Returns:
899
900 EFI_SUCCESS - Decompression is successful
901 EFI_INVALID_PARAMETER - The source data is corrupted
902
903--*/
904{
905 mPbit = EFIPBIT;
906 return Decompress (Source, SrcSize, Destination, DstSize, Scratch, ScratchSize);
907}
908
909EFI_STATUS
910TianoDecompress (

Callers 1

ExtractFunction · 0.70

Calls 1

DecompressFunction · 0.70

Tested by

no test coverage detected