Exemplo n.º 1
0
 public int deflateInit(int level, int bits, bool nowrap)
 {
     dstate = new Deflate();
     return(dstate.deflateInit(this, level, nowrap?-bits:bits));
 }
Exemplo n.º 2
0
 public int DeflateInit(int level, int bits)
 {
     dstate = new Deflate();
     return(dstate.deflateInit(this, level, bits));
 }
Exemplo n.º 3
0
 public int deflateInit(int level, int bits)
 {
     dstate = new Deflate();
     return dstate.deflateInit(this, level, bits);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes the internal stream state for compression.
 /// </summary>
 /// <param name="level">An integer value from 0 to 9 indicating the desired compression level.</param>
 /// <param name="bits"> The windowBits parameter is the base two logarithm of the window size (the size of the history buffer). It should be in the range 8..15 for this version of the library. Larger values of this parameter result in better compression at the expense of memory usage. The default value is 15 if deflateInit is used instead.</param>
 /// <returns>
 /// deflateInit returns <see cref="ZLibResultCode.Z_OK" /> if success, <see cref="ZLibResultCode.Z_MEM_ERROR" /> if there was not enough memory, <see cref="ZLibResultCode.Z_STREAM_ERROR" /> if level is not a valid compression level. <see cref="msg" /> is set to <c>null</c> if there is no error message. <see cref="deflateInit(int,int)" /> does not perform any compression: this will be done by <see cref="deflate" />.
 /// </returns>
 internal int deflateInit(int level, int bits)
 {
     _dstate = new Deflate();
     return(_dstate.deflateInit(this, level, bits));
 }