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

Function TianoDecompress

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

Source from the content-addressed store, hash-verified

907}
908
909EFI_STATUS
910TianoDecompress (
911 IN VOID *Source,
912 IN UINT32 SrcSize,
913 IN OUT VOID *Destination,
914 IN UINT32 DstSize,
915 IN OUT VOID *Scratch,
916 IN UINT32 ScratchSize
917 )
918/*++
919
920Routine Description:
921
922 The implementation of Tiano Decompress().
923
924Arguments:
925
926 Source - The source buffer containing the compressed data.
927 SrcSize - The size of source buffer
928 Destination - The destination buffer to store the decompressed data
929 DstSize - The size of destination buffer.
930 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
931 ScratchSize - The size of scratch buffer.
932
933Returns:
934
935 EFI_SUCCESS - Decompression is successful
936 EFI_INVALID_PARAMETER - The source data is corrupted
937
938--*/
939{
940 mPbit = MAXPBIT;
941 return Decompress (Source, SrcSize, Destination, DstSize, Scratch, ScratchSize);
942}
943
944EFI_STATUS
945Extract (

Callers 1

ExtractFunction · 0.70

Calls 1

DecompressFunction · 0.70

Tested by

no test coverage detected