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
@@ -252,6 +255,9 @@ For initializing zalloc, zfree, opaque.
252
255
*`zlib.Z_NULL`
253
256
254
257
## Class Options
258
+
<!-- YAML
259
+
added: v0.11.1
260
+
-->
255
261
256
262
<!--type=misc-->
257
263
@@ -272,40 +278,67 @@ See the description of `deflateInit2` and `inflateInit2` at
272
278
<http://zlib.net/manual.html#Advanced> for more information on these.
273
279
274
280
## Class: zlib.Deflate
281
+
<!-- YAML
282
+
added: v0.5.8
283
+
-->
275
284
276
285
Compress data using deflate.
277
286
278
287
## Class: zlib.DeflateRaw
288
+
<!-- YAML
289
+
added: v0.5.8
290
+
-->
279
291
280
292
Compress data using deflate, and do not append a zlib header.
281
293
282
294
## Class: zlib.Gunzip
295
+
<!-- YAML
296
+
added: v0.5.8
297
+
-->
283
298
284
299
Decompress a gzip stream.
285
300
286
301
## Class: zlib.Gzip
302
+
<!-- YAML
303
+
added: v0.5.8
304
+
-->
287
305
288
306
Compress data using gzip.
289
307
290
308
## Class: zlib.Inflate
309
+
<!-- YAML
310
+
added: v0.5.8
311
+
-->
291
312
292
313
Decompress a deflate stream.
293
314
294
315
## Class: zlib.InflateRaw
316
+
<!-- YAML
317
+
added: v0.5.8
318
+
-->
295
319
296
320
Decompress a raw deflate stream.
297
321
298
322
## Class: zlib.Unzip
323
+
<!-- YAML
324
+
added: v0.5.8
325
+
-->
299
326
300
327
Decompress either a Gzip- or Deflate-compressed stream by auto-detecting
301
328
the header.
302
329
303
330
## Class: zlib.Zlib
331
+
<!-- YAML
332
+
added: v0.5.8
333
+
-->
304
334
305
335
Not exported by the `zlib` module. It is documented here because it is the base
306
336
class of the compressor/decompressor classes.
307
337
308
338
### zlib.flush([kind], callback)
339
+
<!-- YAML
340
+
added: v0.5.8
341
+
-->
309
342
310
343
`kind` defaults to `zlib.Z_FULL_FLUSH`.
311
344
@@ -318,40 +351,67 @@ normal call to `.write()`, i.e. it will be queued up behind other pending
318
351
writes and will only produce output when data is being read from the stream.
319
352
320
353
### zlib.params(level, strategy, callback)
354
+
<!-- YAML
355
+
added: v0.11.4
356
+
-->
321
357
322
358
Dynamically update the compression level and compression strategy.
323
359
Only applicable to deflate algorithm.
324
360
325
361
### zlib.reset()
362
+
<!-- YAML
363
+
added: v0.7.0
364
+
-->
326
365
327
366
Reset the compressor/decompressor to factory defaults. Only applicable to
328
367
the inflate and deflate algorithms.
329
368
330
369
## zlib.createDeflate([options])
370
+
<!-- YAML
371
+
added: v0.5.8
372
+
-->
331
373
332
374
Returns a new [Deflate][] object with an [options][].
333
375
334
376
## zlib.createDeflateRaw([options])
377
+
<!-- YAML
378
+
added: v0.5.8
379
+
-->
335
380
336
381
Returns a new [DeflateRaw][] object with an [options][].
337
382
338
383
## zlib.createGunzip([options])
384
+
<!-- YAML
385
+
added: v0.5.8
386
+
-->
339
387
340
388
Returns a new [Gunzip][] object with an [options][].
341
389
342
390
## zlib.createGzip([options])
391
+
<!-- YAML
392
+
added: v0.5.8
393
+
-->
343
394
344
395
Returns a new [Gzip][] object with an [options][].
345
396
346
397
## zlib.createInflate([options])
398
+
<!-- YAML
399
+
added: v0.5.8
400
+
-->
347
401
348
402
Returns a new [Inflate][] object with an [options][].
349
403
350
404
## zlib.createInflateRaw([options])
405
+
<!-- YAML
406
+
added: v0.5.8
407
+
-->
351
408
352
409
Returns a new [InflateRaw][] object with an [options][].
353
410
354
411
## zlib.createUnzip([options])
412
+
<!-- YAML
413
+
added: v0.5.8
414
+
-->
355
415
356
416
Returns a new [Unzip][] object with an [options][].
357
417
@@ -367,37 +427,79 @@ Every method has a `*Sync` counterpart, which accept the same arguments, but
0 commit comments