Rate This Document
Findability
Accuracy
Completeness
Readability

compress_pfordelta

API Definition

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

Function

Compresses 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 compressed.

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

output

unsigned int*

Pointer to the memory space of the output compressed data.

The value cannot be null.

num_input_elements

int

Number of data elements to be compressed.

The value is a positive integer.

_block_size

int

Number of data elements per compression block

The value is an integer multiple of 32.

Return Value

Data Type

Description

int

Returns the length of the compressed data. If the compression fails, -1 is returned.