You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -279,6 +282,9 @@ For initializing zalloc, zfree, opaque.
279
282
*`zlib.Z_NULL`
280
283
281
284
## Class Options
285
+
<!-- YAML
286
+
added: v0.11.1
287
+
-->
282
288
283
289
<!--type=misc-->
284
290
@@ -300,40 +306,67 @@ See the description of `deflateInit2` and `inflateInit2` at
300
306
<http://zlib.net/manual.html#Advanced> for more information on these.
301
307
302
308
## Class: zlib.Deflate
309
+
<!-- YAML
310
+
added: v0.5.8
311
+
-->
303
312
304
313
Compress data using deflate.
305
314
306
315
## Class: zlib.DeflateRaw
316
+
<!-- YAML
317
+
added: v0.5.8
318
+
-->
307
319
308
320
Compress data using deflate, and do not append a `zlib` header.
309
321
310
322
## Class: zlib.Gunzip
323
+
<!-- YAML
324
+
added: v0.5.8
325
+
-->
311
326
312
327
Decompress a gzip stream.
313
328
314
329
## Class: zlib.Gzip
330
+
<!-- YAML
331
+
added: v0.5.8
332
+
-->
315
333
316
334
Compress data using gzip.
317
335
318
336
## Class: zlib.Inflate
337
+
<!-- YAML
338
+
added: v0.5.8
339
+
-->
319
340
320
341
Decompress a deflate stream.
321
342
322
343
## Class: zlib.InflateRaw
344
+
<!-- YAML
345
+
added: v0.5.8
346
+
-->
323
347
324
348
Decompress a raw deflate stream.
325
349
326
350
## Class: zlib.Unzip
351
+
<!-- YAML
352
+
added: v0.5.8
353
+
-->
327
354
328
355
Decompress either a Gzip- or Deflate-compressed stream by auto-detecting
329
356
the header.
330
357
331
358
## Class: zlib.Zlib
359
+
<!-- YAML
360
+
added: v0.5.8
361
+
-->
332
362
333
363
Not exported by the `zlib` module. It is documented here because it is the base
334
364
class of the compressor/decompressor classes.
335
365
336
366
### zlib.flush([kind], callback)
367
+
<!-- YAML
368
+
added: v0.5.8
369
+
-->
337
370
338
371
`kind` defaults to `zlib.Z_FULL_FLUSH`.
339
372
@@ -346,40 +379,67 @@ normal call to `.write()`, i.e. it will be queued up behind other pending
346
379
writes and will only produce output when data is being read from the stream.
347
380
348
381
### zlib.params(level, strategy, callback)
382
+
<!-- YAML
383
+
added: v0.11.4
384
+
-->
349
385
350
386
Dynamically update the compression level and compression strategy.
351
387
Only applicable to deflate algorithm.
352
388
353
389
### zlib.reset()
390
+
<!-- YAML
391
+
added: v0.7.0
392
+
-->
354
393
355
394
Reset the compressor/decompressor to factory defaults. Only applicable to
356
395
the inflate and deflate algorithms.
357
396
358
397
## zlib.createDeflate([options])
398
+
<!-- YAML
399
+
added: v0.5.8
400
+
-->
359
401
360
402
Returns a new [Deflate][] object with an [options][].
361
403
362
404
## zlib.createDeflateRaw([options])
405
+
<!-- YAML
406
+
added: v0.5.8
407
+
-->
363
408
364
409
Returns a new [DeflateRaw][] object with an [options][].
365
410
366
411
## zlib.createGunzip([options])
412
+
<!-- YAML
413
+
added: v0.5.8
414
+
-->
367
415
368
416
Returns a new [Gunzip][] object with an [options][].
369
417
370
418
## zlib.createGzip([options])
419
+
<!-- YAML
420
+
added: v0.5.8
421
+
-->
371
422
372
423
Returns a new [Gzip][] object with an [options][].
373
424
374
425
## zlib.createInflate([options])
426
+
<!-- YAML
427
+
added: v0.5.8
428
+
-->
375
429
376
430
Returns a new [Inflate][] object with an [options][].
377
431
378
432
## zlib.createInflateRaw([options])
433
+
<!-- YAML
434
+
added: v0.5.8
435
+
-->
379
436
380
437
Returns a new [InflateRaw][] object with an [options][].
381
438
382
439
## zlib.createUnzip([options])
440
+
<!-- YAML
441
+
added: v0.5.8
442
+
-->
383
443
384
444
Returns a new [Unzip][] object with an [options][].
385
445
@@ -395,37 +455,79 @@ Every method has a `*Sync` counterpart, which accept the same arguments, but
0 commit comments