<< Previous | Next >>

ReadCompressedFile

int ReadCompressedFile( ZFILE * input, UBYTE * buf, int lenx );

Description

This function decompresses a compressed file (input ZFILE, opened with OpenInputCompressedFile()) using the LZ compression algorithm on-the-fly, placing a number of bytes (lenx) into a user-specified buffer (buf).

Parameters

input
Input bit file.

buf
Output buffer.

lenx
Number of bytes to read. This can be increased to get more throughput or decreased to free up variable space.

Return Value

Number of bytes read

Library

LZSS.LIB


Dynamic C Functions << Previous | Next >> rabbit.com