xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_CompressBufLen()

Calculates the buffer size required for compression.

Syntax

HB_CompressBufLen( <nUncompressedLen> )--> nDefaultBufLen

Arguments

<nUncompressedLen>
This is a numeric value indicating the length of the input string to compress in bytes.

Return

The function returns a numeric value which is the number of bytes a preallocated buffer must have to receive the compression result. This is required for the advanced form of HB_Compress().

Info

See also:HB_Compress()
Category: ZIP compression , xHarbour extensions
Header:HbCompress.ch
Source:rtl\hbcomprs.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe