KI_COMP
Argument | Enumeration | Purpose |
---|---|---|
SYM(in_buf$) | Symbol of data to be compressed | |
in_size | Size of source data | |
SYM(out_buf$) | Symbol of output buffer | |
out_size | Size of compressed data |
KI_COMP
This compresses a buffer using the same algorithm as the Unix utility compress working with a 16 bit dictionary. This can be uncompressed later with KI_DCOMP.
If the output symbol is negative then the buffer will be re-dimensioned large enough to accomodate the compressed output.
KI_COMP may fail on data that is already compressed, in this case it will return a negative out_size, the contents of out_buf$ are undefined.