Used for emulating file reads, as the library is a port of ncompress. The function must return the number of bytes read, 0 if EoF (or end of datasteam) has reached, or -1 on errors. rwCtxt can contain filenames if they're applicable.
Used for emulating file writes. It must return the number of files pushed, or -1 on error
Error codes, mainly from decompression.
Compresses the datasteam
Decompresses the datastream
Frees all buffers up.
Initialise for compression. Set the reader, writer and read-write context in the CompressCtxt struct. Then call initCompress() The bits parameter is only used when compressing. It sets the maximum size of a code word. The value must be in the range 9 to 16 or else zero to select the default of 16.
Initialise for decompression. Set the reader, writer and read-write context in the CompressCtxt struct. Then call initDecompress()
Used for storing function pointers and other contextual stuff.