#include "nsd.h"Functions | |
| int | Ns_Gzip (char *buf, int len, int level, Tcl_DString *dsPtr) |
| void | Ns_SetGzipProc (Ns_GzipProc *procPtr) |
| int | Ns_Compress (char *buf, int len, Tcl_DString *outPtr, int level) |
| int | Ns_CompressGzip (char *buf, int len, Tcl_DString *outPtr, int level) |
| int Ns_Compress | ( | char * | buf, | |
| int | len, | |||
| Tcl_DString * | outPtr, | |||
| int | level | |||
| ) |
----------------------------------------------------------------------
Ns_Compress, Ns_CompressGzip --
AOLserver 4.0 compression routines.
Results: See Ns_Gzip.
Side effects: See Ns_Gzip.
----------------------------------------------------------------------
| int Ns_CompressGzip | ( | char * | buf, | |
| int | len, | |||
| Tcl_DString * | outPtr, | |||
| int | level | |||
| ) |
| int Ns_Gzip | ( | char * | buf, | |
| int | len, | |||
| int | level, | |||
| Tcl_DString * | dsPtr | |||
| ) |
----------------------------------------------------------------------
Ns_Gzip --
Compress a string.
Results: Result of external compress proc, if any, otherwise NS_ERROR.
Side effects: Will write compressed content to given Tcl_DString.
----------------------------------------------------------------------
| void Ns_SetGzipProc | ( | Ns_GzipProc * | procPtr | ) |
----------------------------------------------------------------------
Ns_SetGzipProc --
Set the global procedure for compression. Called by the nszlib module when loaded.
Results: None.
Side effects: Later calls to Ns_Gzip will use given function.
----------------------------------------------------------------------
1.5.1