COMPRESSSTRING()
Compress an string
- Syntax
-
- CompressString(@<cString>,@<nSize>)
- Arguments
-
- <cString> Buffer to compress, must be passed by reference.
- <nSize> The Lenght of the compression String
- Returns
-
- NIL
- Description
-
- This function compress an string buffer and return the compression function and the size of this compression function. This size is required for uncompression the string
Examples
Local cTest:= memoread('tzipfile.prg')
? 'String before compressing',cTest
COMPRESSSTRING(@cTest,@nSize)
? "Size",nSize
? " "
? " "
? 'String after compressing',cTest
- Status
- Ready
- Compliance
-
- This function is a Harbour extension
- Platforms
-
- All
- See Also