"zlib" | typescript
Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

Z_ASCII

Z_ASCII: number

Z_BEST_COMPRESSION

Z_BEST_COMPRESSION: number

Z_BEST_SPEED

Z_BEST_SPEED: number

Z_BINARY

Z_BINARY: number

Z_BLOCK

Z_BLOCK: number

Z_BUF_ERROR

Z_BUF_ERROR: number

Z_DATA_ERROR

Z_DATA_ERROR: number

Z_DEFAULT_COMPRESSION

Z_DEFAULT_COMPRESSION: number

Z_DEFAULT_STRATEGY

Z_DEFAULT_STRATEGY: number

Z_DEFLATED

Z_DEFLATED: number

Z_ERRNO

Z_ERRNO: number

Z_FILTERED

Z_FILTERED: number

Z_FINISH

Z_FINISH: number

Z_FIXED

Z_FIXED: number

Z_FULL_FLUSH

Z_FULL_FLUSH: number

Z_HUFFMAN_ONLY

Z_HUFFMAN_ONLY: number

Z_MEM_ERROR

Z_MEM_ERROR: number

Z_NEED_DICT

Z_NEED_DICT: number

Z_NO_COMPRESSION

Z_NO_COMPRESSION: number

Z_NO_FLUSH

Z_NO_FLUSH: number

Z_NULL

Z_NULL: number

Z_OK

Z_OK: number

Z_PARTIAL_FLUSH

Z_PARTIAL_FLUSH: number

Z_RLE

Z_RLE: number

Z_STREAM_END

Z_STREAM_END: number

Z_STREAM_ERROR

Z_STREAM_ERROR: number

Z_SYNC_FLUSH

Z_SYNC_FLUSH: number

Z_TEXT

Z_TEXT: number

Z_TREES

Z_TREES: number

Z_UNKNOWN

Z_UNKNOWN: number

Z_VERSION_ERROR

Z_VERSION_ERROR: number

Functions

createDeflate

  • Parameters

    Returns Deflate

createDeflateRaw

  • Parameters

    Returns DeflateRaw

createGunzip

  • Parameters

    Returns Gunzip

createGzip

  • Parameters

    Returns Gzip

createInflate

  • Parameters

    Returns Inflate

createInflateRaw

  • Parameters

    Returns InflateRaw

createUnzip

  • Parameters

    Returns Unzip

deflate

  • deflate(buf: Buffer | string, callback: function): void
  • deflate(buf: Buffer | string, options: ZlibOptions, callback: function): void
  • Parameters

    • buf: Buffer | string
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • buf: Buffer | string
    • options: ZlibOptions
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

deflateRaw

  • deflateRaw(buf: Buffer | string, callback: function): void
  • deflateRaw(buf: Buffer | string, options: ZlibOptions, callback: function): void
  • Parameters

    • buf: Buffer | string
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • buf: Buffer | string
    • options: ZlibOptions
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

deflateRawSync

  • Parameters

    Returns Buffer

deflateSync

  • Parameters

    Returns Buffer

gunzip

  • gunzip(buf: Buffer | string, callback: function): void
  • gunzip(buf: Buffer | string, options: ZlibOptions, callback: function): void
  • Parameters

    • buf: Buffer | string
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • buf: Buffer | string
    • options: ZlibOptions
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

gunzipSync

  • Parameters

    Returns Buffer

gzip

  • gzip(buf: Buffer | string, callback: function): void
  • gzip(buf: Buffer | string, options: ZlibOptions, callback: function): void
  • Parameters

    • buf: Buffer | string
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • buf: Buffer | string
    • options: ZlibOptions
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

gzipSync

  • Parameters

    Returns Buffer

inflate

  • inflate(buf: Buffer | string, callback: function): void
  • inflate(buf: Buffer | string, options: ZlibOptions, callback: function): void
  • Parameters

    • buf: Buffer | string
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • buf: Buffer | string
    • options: ZlibOptions
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

inflateRaw

  • inflateRaw(buf: Buffer | string, callback: function): void
  • inflateRaw(buf: Buffer | string, options: ZlibOptions, callback: function): void
  • Parameters

    • buf: Buffer | string
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • buf: Buffer | string
    • options: ZlibOptions
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

inflateRawSync

  • Parameters

    Returns Buffer

inflateSync

  • Parameters

    Returns Buffer

unzip

  • unzip(buf: Buffer | string, callback: function): void
  • unzip(buf: Buffer | string, options: ZlibOptions, callback: function): void
  • Parameters

    • buf: Buffer | string
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • buf: Buffer | string
    • options: ZlibOptions
    • callback: function
        • (error: Error, result: Buffer): void
        • Parameters

          Returns void

    Returns void

unzipSync

  • Parameters

    Returns Buffer

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc