| 872 | } |
| 873 | |
| 874 | EFI_STATUS |
| 875 | EfiDecompress ( |
| 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 | |
| 885 | Routine Description: |
| 886 | |
| 887 | The implementation of Efi Decompress(). |
| 888 | |
| 889 | Arguments: |
| 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 | |
| 898 | Returns: |
| 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 | |
| 909 | EFI_STATUS |
| 910 | TianoDecompress ( |