Lines Matching refs:strategy

20678 	  if (opts.strategy) {
20679 if (opts.strategy != exports.Z_FILTERED &&
20680 opts.strategy != exports.Z_HUFFMAN_ONLY &&
20681 opts.strategy != exports.Z_RLE &&
20682 opts.strategy != exports.Z_FIXED &&
20683 opts.strategy != exports.Z_DEFAULT_STRATEGY) {
20684 throw new Error('Invalid strategy: ' + opts.strategy);
20713 var strategy = exports.Z_DEFAULT_STRATEGY;
20714 if (typeof opts.strategy === 'number') strategy = opts.strategy;
20719 strategy,
20726 this._strategy = strategy;
20733 Zlib.prototype.params = function(level, strategy, callback) {
20738 if (strategy != exports.Z_FILTERED &&
20739 strategy != exports.Z_HUFFMAN_ONLY &&
20740 strategy != exports.Z_RLE &&
20741 strategy != exports.Z_FIXED &&
20742 strategy != exports.Z_DEFAULT_STRATEGY) {
20743 throw new TypeError('Invalid strategy: ' + strategy);
20746 if (this._level !== level || this._strategy !== strategy) {
20749 self._binding.params(level, strategy);
20752 self._strategy = strategy;
20995 this.strategy = 0;
20999 Zlib.prototype.init = function(windowBits, level, memLevel, strategy, dictionary) {
21003 this.strategy = strategy;
21027 this.strategy
22012 …(s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*…
22415 this.strategy = 0; /* favor or force Huffman coding*/
22564 function deflateInit2(strm, level, method, windowBits, memLevel, strategy) {
22587 strategy < 0 || strategy > Z_FIXED) {
22629 s.strategy = strategy;
22676 (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?
22693 (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?
22712 if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {
22893 var bstate = (s.strategy === Z_HUFFMAN_ONLY) ? deflate_huff(s, flush) :
22894 (s.strategy === Z_RLE ? deflate_rle(s, flush) :
24246 } else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {