Extensible Firmware Interface Specification
17-20 12/01/02 Version 1.10
Description
The Decompress() function extracts decompressed data to its original form.
This protocol is designed so that the decompression algorithm can be implemented without using
any memory services. As a result, the Decompress() function is not allowed to call
AllocatePool()
or AllocatePages() in its implementation. It is the caller’s
responsibility to allocate and free the Destination and Scratch buffers.
If the compressed source data specified by Source and SourceSize is sucessfully
decompressed into Destination, then EFI_SUCCESS is returned. If the compressed source
data specified by Source and SourceSize is not in a valid compressed data format, then
EFI_INVALID_PARAMETER is returned.
Status Codes Returned
EFI_SUCCESS Decompression completed successfully, and the uncompressed
buffer is returned in
Destination.
EFI_INVALID_PARAMETER
The source buffer specified by
Source and SourceSize is
corrupted (not in a valid compressed format).