Extensible Firmware Interface Specification
17-18 12/01/02 Version 1.10
Description
The GetInfo() function retrieves the size of the uncompressed buffer and the temporary scratch
buffer required to decompress the buffer specified by Source and SourceSize. If the size of
the uncompressed buffer or the size of the scratch buffer cannot be determined from the
compressed data specified by Source and SourceData, then EFI_INVALID_PARAMETER is
returned. Otherwise, the size of the uncompressed buffer is returned in DestinationSize, the
size of the scratch buffer is returned in ScratchSize, and EFI_SUCCESS is returned.
The GetInfo() function does not have scratch buffer available to perform a thorough checking
of the validity of the source data. It just retrieves the “Original Size” field from the beginning bytes
of the source data and output it as DestinationSize. And ScratchSize is specific to the
decompression implementation.
Status Codes Returned
EFI_SUCCESS The size of the uncompressed data was returned in
DestinationSize and the size of the scratch buffer was
returned in
ScratchSize.
EFI_INVALID_PARAMETER The size of the uncompressed data or the size of the scratch buffer
cannot be determined from the compressed data specified by
Source and SourceData.