Dynamic module zlib

Index

Variables

Interfaces

Classes

Functions

Variables

Z_ASCII: number

Z_BEST_COMPRESSION: number

Z_BEST_SPEED: number

Z_BINARY: number

Z_BLOCK: number

Z_BUF_ERROR: number

Z_DATA_ERROR: number

Z_DEFAULT_COMPRESSION: number

Z_DEFAULT_STRATEGY: number

Z_DEFLATED: number

Z_ERRNO: number

Z_FILTERED: number

Z_FINISH: number

Z_FIXED: number

Z_FULL_FLUSH: number

Z_HUFFMAN_ONLY: number

Z_MEM_ERROR: number

Z_NEED_DICT: number

Z_NO_COMPRESSION: number

Z_NO_FLUSH: number

Z_NULL: number

Z_OK: number

Z_PARTIAL_FLUSH: number

Z_RLE: number

Z_STREAM_END: number

Z_STREAM_ERROR: number

Z_SYNC_FLUSH: number

Z_TEXT: number

Z_TREES: number

Z_UNKNOWN: number

Z_VERSION_ERROR: number

Functions

createDeflate(options?: ZlibOptions): Deflate

Parameters

Returns

Deflate

createDeflateRaw(options?: ZlibOptions): DeflateRaw

Parameters

Returns

DeflateRaw

createGunzip(options?: ZlibOptions): Gunzip

Parameters

Returns

Gunzip

createGzip(options?: ZlibOptions): Gzip

Parameters

Returns

Gzip

createInflate(options?: ZlibOptions): Inflate

Parameters

Returns

Inflate

createInflateRaw(options?: ZlibOptions): InflateRaw

Parameters

Returns

InflateRaw

createUnzip(options?: ZlibOptions): Unzip

Parameters

Returns

Unzip

deflate(buf: Buffer, callback: (error: Error, result: any) => void)

Parameters

  • buf: Buffer
  • callback: (error: Error, result: any) => void

deflateRaw(buf: Buffer, callback: (error: Error, result: any) => void)

Parameters

  • buf: Buffer
  • callback: (error: Error, result: any) => void

gunzip(buf: Buffer, callback: (error: Error, result: any) => void)

Parameters

  • buf: Buffer
  • callback: (error: Error, result: any) => void

gzip(buf: Buffer, callback: (error: Error, result: any) => void)

Parameters

  • buf: Buffer
  • callback: (error: Error, result: any) => void

inflate(buf: Buffer, callback: (error: Error, result: any) => void)

Parameters

  • buf: Buffer
  • callback: (error: Error, result: any) => void

inflateRaw(buf: Buffer, callback: (error: Error, result: any) => void)

Parameters

  • buf: Buffer
  • callback: (error: Error, result: any) => void

unzip(buf: Buffer, callback: (error: Error, result: any) => void)

Parameters

  • buf: Buffer
  • callback: (error: Error, result: any) => void