SZ_szBufftoBuffCompress
(void * dest
,
size_t * destLen
, const void * source
,
size_t sourceLen
, SZ_com_t *param
)
SZ_szBufftoBuffCompress
attempts to compress the data in
source
buffer into dest
buffer. If destination
buffer is big enough, *destLen
is set to the size of the
compressed data, and SZ_OK
is returned. Otherwise, *destLen
is unchanged and SZ_OUTBUFF_FULL
is returned. The resulting
compressed data is a complete SZIP format data stream. param
is a structure of type SZ_com_t with parameters that may control compression.
dest
destLen
source
sourceLen
param
SZ_CONFIG_ERROR
if the library has been mis-compiled
SZ_PARAM_ERROR
if there is an error in parameters list
SZ_MEM_ERROR
if unsufficient memory is available
SZ_OUTBUF_FULL
if size of compressed data bigger than *destLen
SZ_???
other returned values (specify if needed)
SZ_OK
if successful
SZ_szBufftoBuffDecompress
(void * dest
,
size_t * destLen
, const void * source
,
size_t sourceLen
, SZ_decom_t *param
)
SZ_szBufftoBuffdecompress
attempts to decompress the data in
source
buffer into dest
buffer. If destination
buffer is big enough, *destLen
is set to the size of the
uncompressed data, and SZ_OK
is returned. Otherwise, *destLen
is unchanged and SZ_OUTBUFF_FULL
is returned. It is assumed that
source
holds complete compressed SZIP data stream.
param
is a structure of type SZ_decom_t with parameters that may control decompression.
dest
destLen
source
sourceLen
param
SZ_CONFIG_ERROR
if the library has been mis-compiled
SZ_PARAM_ERROR
if there is an error in parameters list
SZ_MEM_ERROR
if unsufficient memory is available
SZ_OUTBUF_FULL
if size of uncompressed data bigger than *destLen
SZ_UNEXPECTED_EOF
if compressed data iends unexpectedly
SZ_???
other returned values (specify if needed)
SZ_OK
if successful