我要评分
获取效率
正确性
完整性
易理解

decompress_pfordelta

API Definition

int decompress_pfordelta(unsigned int* input, unsigned int* output, int num_input_elements, int _block_size);

Function

Decompresses data using the KNewPfordelta algorithm.

Parameters

Parameter

Data Type

Description

Value Range

input

unsigned int*

Pointer to the memory space of the source data to be decompressed.

The value cannot be null.

output

unsigned int*

Pointer to the memory space of the output decompressed data.

The value cannot be null, and must be an integer multiple of _block_size.

num_input_elements

int

Number of data elements after decompression.

The value is a positive integer.

_block_size

int

Number of data elements per decompression block

The value is an integer multiple of 32, which is the same as the number of the data elements per compression block.

Return Value

Data Type

Description

int

Returns the length of the data to be decompressed, which is the same as the length of the compressed data. If the decompression fails, -1 is returned.