ID3DX10DataLoader::Decompress method

Used to decompress encoded data. Typically this would be used to load resources from file systems, such as ZIP files. When loading from an uncompressed resource, the decompression stage does not have to do any work.

Syntax

HRESULT Decompress(
  [out] void   **ppData,
  [in]  SIZE_T *pcBytes
);

Parameters

ppData [out]

Type: void**

Pointer to the raw data to decompress.

pcBytes [in]

Type: SIZE_T*

The size of the data pointed to by ppData.

Return value

Type: HRESULT

The return value is one of the values listed in Direct3D 10 Return Codes.

Remarks

ID3DX10DataLoader Interface can be inherited and its members redefined. Decompress could be redefined to support your own custom file formats.

Requirements

Requirement Value
Header
D3DX10.h
Library
D3DX10.lib

See also

ID3DX10DataLoader

D3DX Interfaces