Efi_decompress_protocol.decompress(), Decompress(), See th – Intel Extensible Firmware Interface User Manual

Page 759

Advertising
background image

Protocols

— Compression Algorithm Specification

Version 1.10

12/01/02

17-19

EFI_DECOMPRESS_PROTOCOL.Decompress()

Summary

Decompresses a compressed source buffer.

Prototype

typedef
EFI_STATUS
(EFIAPI *EFI_DECOMPRESS_DECOMPRESS) (
IN EFI_DECOMPRESS_PROTOCOL

*This,

IN VOID*

Source,

IN UINT32

SourceSize,

IN OUT VOID*

Destination,

IN UINT32 DestinationSize,
IN OUT VOID*

Scratch,

IN UINT32 ScratchSize
);

Parameters

This

A pointer to the

EFI_DECOMPRESS_PROTOCOL

instance.

Type

EFI_DECOMPRESS_PROTOCOL

is defined in

Section 17.5.

Source

The source buffer containing the compressed data.

SourceSize

The size of source data.

Destination

On output, the destination buffer that contains the
uncompressed data.

DestinationSize

The size of the destination buffer. The size of the destination
buffer needed is obtained from

GetInfo()

.

Scratch

A temporary scratch buffer that is used to perform the
decompression.

ScratchSize

The size of scratch buffer. The size of the scratch buffer needed
is obtained from

GetInfo()

.

Advertising