KI_DCOMP

Uncompress data

Synopsis:
CALL KI_DCOMP SYM(in_buf$), in_size, SYM(out_buf$) TO out_size
out_size = 'ki_dcomp( SYM(in_buf$), in_size, SYM(out_buf$) )
ArgumentEnumerationPurpose
SYM(in_buf$)Symbol of source data
in_sizeSize of source data
SYM(out_buf$)Symbol of output buffer
out_sizeSize of uncompressed data
>KI_DCOMP

KI_DCOMP

This expands a buffer previously compressed by KI_COMP using the same algorithm as the Unix utility compress working with a 16 bit dictionary.

If the output symbol is negative then the buffer will be re-dimensioned large enough to accomodate the uncompressed output.

KI_DCOMP will fail if it has been passed data than has not been compressed with KI_COMP. In this case out_size will contain a negative value and the contents of out_buf$ are undefined.

History
Introduced in KCML 3.00
See Also:
IP_TOS, KI_AES_DECRYPT, KI_AES_ENCRYPT, KI_COMP, KI_COMPFILE, KI_CRYPT, KI_DCOMPFILE, KI_DES_DECRYPT, KI_DES_ENCRYPT, KI_DF, KI_DFK, KI_DIR, KI_DIR_LIST, KI_DS, KI_MD5, KI_PID, KI_PMATCH, KI_SHA1, KI_SIZE, KI_STAT, KI_STATFS, KI_TOUCH, R7_DATE2J, R7_J2DATE
KCML database status codes