#include <mspack.h>
Data Fields | |
msszddd_header *(* | open )(struct msszdd_decompressor *self, char *filename) |
Opens a SZDD file and reads the header. | |
void(* | close )(struct msszdd_decompressor *self, struct msszddd_header *szdd) |
Closes a previously opened SZDD file. | |
int(* | extract )(struct msszdd_decompressor *self, struct msszddd_header *szdd, char *filename) |
Extracts the compressed data from a SZDD file. | |
int(* | decompress )(struct msszdd_decompressor *self, char *input, char *output) |
Decompresses an SZDD file to an output file in one step. | |
int(* | last_error )(struct msszdd_decompressor *self) |
Returns the error code set by the most recently called method. |
All fields are READ ONLY.
|
Closes a previously opened SZDD file. This closes a SZDD file and frees the msszddd_header associated with it. The SZDD header pointer is now invalid and cannot be used again. All msszddd_file pointers referencing that SZDD are also now invalid, and cannot be used again.
|
|
Decompresses an SZDD file to an output file in one step. This opens an SZDD file as input, reads the header, then decompresses the compressed data immediately to an output file, finally closing both the input and output file. It is more convenient to use than open() then extract() then close(), if you do not need to know the SZDD output size or missing character.
|
|
Extracts the compressed data from a SZDD file. This decompresses the compressed SZDD data stream and writes it to an output file.
|
|
Returns the error code set by the most recently called method. This is useful for open() which does not return an error code directly.
|
|
Opens a SZDD file and reads the header. If the file opened is a valid SZDD file, all headers will be read and a msszddd_header structure will be returned. In the case of an error occuring, NULL is returned and the error code is available from last_error(). The filename pointer should be considered "in use" until close() is called on the SZDD file.
|