| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7abfb6e commit a53253a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -186,6 +186,9 @@ http.createServer((request, response) => { | |||
| 186 | 186 | ``` | |
| 187 | 187 | ||
| 188 | 188 | ## Constants | |
| 189 | + <!-- YAML | ||
| 190 | + added: v0.5.8 | ||
| 191 | + --> | ||
| 189 | 192 | ||
| 190 | 193 | <!--type=misc--> | |
| 191 | 194 | ||
@@ -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 | |||
| 367 | 427 | without a callback. | |
| 368 | 428 | ||
| 369 | 429 | ### zlib.deflate(buf[, options], callback) | |
| 430 | + <!-- YAML | ||
| 431 | + added: v0.6.0 | ||
| 432 | + --> | ||
| 370 | 433 | ### zlib.deflateSync(buf[, options]) | |
| 434 | + <!-- YAML | ||
| 435 | + added: v0.11.12 | ||
| 436 | + --> | ||
| 371 | 437 | ||
| 372 | 438 | Compress a Buffer or string with Deflate. | |
| 373 | 439 | ||
| 374 | 440 | ### zlib.deflateRaw(buf[, options], callback) | |
| 441 | + <!-- YAML | ||
| 442 | + added: v0.6.0 | ||
| 443 | + --> | ||
| 375 | 444 | ### zlib.deflateRawSync(buf[, options]) | |
| 445 | + <!-- YAML | ||
| 446 | + added: v0.11.12 | ||
| 447 | + --> | ||
| 376 | 448 | ||
| 377 | 449 | Compress a Buffer or string with DeflateRaw. | |
| 378 | 450 | ||
| 379 | 451 | ### zlib.gunzip(buf[, options], callback) | |
| 452 | + <!-- YAML | ||
| 453 | + added: v0.6.0 | ||
| 454 | + --> | ||
| 380 | 455 | ### zlib.gunzipSync(buf[, options]) | |
| 456 | + <!-- YAML | ||
| 457 | + added: v0.11.12 | ||
| 458 | + --> | ||
| 381 | 459 | ||
| 382 | 460 | Decompress a Buffer or string with Gunzip. | |
| 383 | 461 | ||
| 384 | 462 | ### zlib.gzip(buf[, options], callback) | |
| 463 | + <!-- YAML | ||
| 464 | + added: v0.6.0 | ||
| 465 | + --> | ||
| 385 | 466 | ### zlib.gzipSync(buf[, options]) | |
| 467 | + <!-- YAML | ||
| 468 | + added: v0.11.12 | ||
| 469 | + --> | ||
| 386 | 470 | ||
| 387 | 471 | Compress a Buffer or string with Gzip. | |
| 388 | 472 | ||
| 389 | 473 | ### zlib.inflate(buf[, options], callback) | |
| 474 | + <!-- YAML | ||
| 475 | + added: v0.6.0 | ||
| 476 | + --> | ||
| 390 | 477 | ### zlib.inflateSync(buf[, options]) | |
| 478 | + <!-- YAML | ||
| 479 | + added: v0.11.12 | ||
| 480 | + --> | ||
| 391 | 481 | ||
| 392 | 482 | Decompress a Buffer or string with Inflate. | |
| 393 | 483 | ||
| 394 | 484 | ### zlib.inflateRaw(buf[, options], callback) | |
| 485 | + <!-- YAML | ||
| 486 | + added: v0.6.0 | ||
| 487 | + --> | ||
| 395 | 488 | ### zlib.inflateRawSync(buf[, options]) | |
| 489 | + <!-- YAML | ||
| 490 | + added: v0.11.12 | ||
| 491 | + --> | ||
| 396 | 492 | ||
| 397 | 493 | Decompress a Buffer or string with InflateRaw. | |
| 398 | 494 | ||
| 399 | 495 | ### zlib.unzip(buf[, options], callback) | |
| 496 | + <!-- YAML | ||
| 497 | + added: v0.6.0 | ||
| 498 | + --> | ||
| 400 | 499 | ### zlib.unzipSync(buf[, options]) | |
| 500 | + <!-- YAML | ||
| 501 | + added: v0.11.12 | ||
| 502 | + --> | ||
| 401 | 503 | ||
| 402 | 504 | Decompress a Buffer or string with Unzip. | |
| 403 | 505 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments