lzf_compress

LZF compression

说明

string lzf_compress ( string $data )

lzf_compress compresses the given data string using LZF encoding.

参数

data
The string to compress.

返回值

Returns the compressed data or FALSE if an error occurred.

参见

  • lzf_decompress

lzf_decompress

LZF decompression

说明

string lzf_decompress ( string $data )

lzf_compress decompresses the given data string containing lzf encoded data.

参数

data
The compressed string.

返回值

Returns the decompressed data or FALSE if an error occurred.

参见

  • lzf_compress

lzf_optimized_for

Determines what LZF extension was optimized for

说明

int lzf_optimized_for ( void )

Determines what was LZF extension optimized for during compilation.

返回值

Returns 1 if LZF was optimized for speed, 0 for compression.

目录