pike.git / src / modules / Gz / zlibmod.c

version» Context lines:

pike.git/src/modules/Gz/zlibmod.c:430:      /*! @endclass    */      /*! @decl string(8bit) compress(string(8bit)|String.Buffer|System.Memory|Stdio.Buffer data, @    *! void|int(0..1) raw, @    *! void|int(0..9) level, void|int strategy, @    *! void|int(8..15) window_size)    *!    *! Encodes and returns the input @[data] according to the deflate -  *! format defined in RFC 1951. +  *! format defined in @rfc{1951@}.    *!    *! @param data    *! The data to be encoded.    *!    *! @param raw    *! If set, the data is encoded without the header and footer -  *! defined in RFC 1950. Example of uses is the ZIP container +  *! defined in @rfc{1950@}. Example of uses is the ZIP container    *! format.    *!    *! @param level    *! Indicates the level of effort spent to make the data compress    *! well. Zero means no packing, 2-3 is considered 'fast', 6 is    *! default and higher is considered 'slow' but gives better    *! packing.    *!    *! @param strategy    *! The strategy to be used when compressing the data. One of the
pike.git/src/modules/Gz/zlibmod.c:948:    low_zlibmod_unpack(lowdata, buf, raw);   }      /*! @endclass   */      /*! @decl string(8bit) uncompress(string(8bit)|String.Buffer|System.Memory|Stdio.Buffer data, void|int(0..1) raw)    *!    *! Uncompresses the @[data] and returns it. The @[raw] parameter    *! tells the decoder that the indata lacks the data header and footer -  *! defined in RFC 1950. +  *! defined in @rfc{1950@}.    */   static void gz_uncompress(INT32 args)   {    dynamic_buffer buf;    struct memobj data;    ONERROR err;    int raw = 0;       if(args<1)    SIMPLE_TOO_FEW_ARGS_ERROR("uncompress", 1);