Object/Trait

io.scalajs.nodejs.zlib

Zlib

Related Docs: trait Zlib | package zlib

Permalink

object Zlib extends Object with Zlib

Zlib Singleton

Annotations
@native() @JSImport( "zlib" , JSImport.Namespace )
Linear Supertypes
Zlib, IEventEmitter, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Zlib
  2. Zlib
  3. IEventEmitter
  4. Object
  5. Any
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val Z_ASCII: DataType

    Permalink
    Definition Classes
    Zlib
  5. val Z_BEST_COMPRESSION: CompressionLevel

    Permalink
    Definition Classes
    Zlib
  6. val Z_BEST_SPEED: CompressionLevel

    Permalink
    Definition Classes
    Zlib
  7. val Z_BINARY: DataType

    Permalink
    Definition Classes
    Zlib
  8. val Z_BLOCK: CompressionFlush

    Permalink
    Definition Classes
    Zlib
  9. val Z_BUF_ERROR: CompressionFunction

    Permalink
    Definition Classes
    Zlib
  10. val Z_DATA_ERROR: CompressionFunction

    Permalink
    Definition Classes
    Zlib
  11. val Z_DEFAULT_COMPRESSION: CompressionLevel

    Permalink
    Definition Classes
    Zlib
  12. val Z_DEFAULT_STRATEGY: CompressionStrategy

    Permalink
    Definition Classes
    Zlib
  13. val Z_DEFLATED: DeflateCompressMethod

    Permalink
    Definition Classes
    Zlib
  14. val Z_ERRNO: CompressionFunction

    Permalink
    Definition Classes
    Zlib
  15. val Z_FILTERED: CompressionStrategy

    Permalink
    Definition Classes
    Zlib
  16. val Z_FINISH: CompressionFlush

    Permalink
    Definition Classes
    Zlib
  17. val Z_FIXED: CompressionStrategy

    Permalink
    Definition Classes
    Zlib
  18. val Z_FULL_FLUSH: CompressionFlush

    Permalink
    Definition Classes
    Zlib
  19. val Z_HUFFMAN_ONLY: CompressionStrategy

    Permalink
    Definition Classes
    Zlib
  20. val Z_MEM_ERROR: CompressionFunction

    Permalink
    Definition Classes
    Zlib
  21. val Z_NEED_DICT: CompressionFunction

    Permalink
    Definition Classes
    Zlib
  22. val Z_NO_COMPRESSION: CompressionLevel

    Permalink
    Definition Classes
    Zlib
  23. val Z_NO_FLUSH: CompressionFlush

    Permalink
    Definition Classes
    Zlib
  24. val Z_NULL: AllocationType

    Permalink
    Definition Classes
    Zlib
  25. val Z_OK: CompressionFunction

    Permalink
    Definition Classes
    Zlib
  26. val Z_PARTIAL_FLUSH: CompressionFlush

    Permalink
    Definition Classes
    Zlib
  27. val Z_RLE: CompressionStrategy

    Permalink
    Definition Classes
    Zlib
  28. val Z_STREAM_END: CompressionFunction

    Permalink
    Definition Classes
    Zlib
  29. val Z_STREAM_ERROR: CompressionFunction

    Permalink
    Definition Classes
    Zlib
  30. val Z_SYNC_FLUSH: CompressionFlush

    Permalink
    Definition Classes
    Zlib
  31. val Z_TEXT: DataType

    Permalink
    Definition Classes
    Zlib
  32. val Z_TREES: CompressionFlush

    Permalink
    Definition Classes
    Zlib
  33. val Z_UNKNOWN: DataType

    Permalink
    Definition Classes
    Zlib
  34. val Z_VERSION_ERROR: CompressionFunction

    Permalink
    Definition Classes
    Zlib
  35. def addListener(eventName: String, listener: Function): Zlib.this.type

    Permalink

    Alias for emitter.on(eventName, listener).

    Alias for emitter.on(eventName, listener).

    Definition Classes
    IEventEmitter
    Example:
    1. emitter.addListener(eventName, listener)

    See also

    on()

  36. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  37. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def createDeflate(options: |[CompressionOptions, RawOptions]): Deflate

    Permalink

    Returns a new Deflate object with an options.

    Returns a new Deflate object with an options.

    Definition Classes
    Zlib
    Example:
    1. zlib.createDeflate(options)

  39. def createDeflateRaw(options: |[CompressionOptions, RawOptions] = js.native): DeflateRaw

    Permalink

    Returns a new DeflateRaw object with an options.

    Returns a new DeflateRaw object with an options.

    Definition Classes
    Zlib
    Example:
    1. zlib.createDeflateRaw(options)

  40. def createGunzip(options: |[CompressionOptions, RawOptions] = js.native): Gunzip

    Permalink

    Returns a new Gunzip object with an options.

    Returns a new Gunzip object with an options.

    Definition Classes
    Zlib
    Example:
    1. zlib.createGunzip(options)

  41. def createGzip(options: |[CompressionOptions, RawOptions] = js.native): Gzip

    Permalink

    Returns a new Gzip object with an options.

    Returns a new Gzip object with an options.

    Definition Classes
    Zlib
    Example:
    1. zlib.createGzip(options)

  42. def createInflate(options: |[CompressionOptions, RawOptions] = js.native): Inflate

    Permalink

    Returns a new Inflate object with an options.

    Returns a new Inflate object with an options.

    Definition Classes
    Zlib
    Example:
    1. zlib.createInflate(options)

  43. def createInflateRaw(options: |[CompressionOptions, RawOptions] = js.native): InflateRaw

    Permalink

    Returns a new InflateRaw object with an options.

    Returns a new InflateRaw object with an options.

    Definition Classes
    Zlib
    Example:
    1. zlib.createInflateRaw(options)

  44. def createUnzip(options: |[CompressionOptions, RawOptions] = js.native): Unzip

    Permalink

    Returns a new Unzip object with an options.

    Returns a new Unzip object with an options.

    Definition Classes
    Zlib
    Example:
    1. zlib.createUnzip(options)

  45. def deflate(buf: |[Buffer, String], callback: Function): Unit

    Permalink

    Compress a Buffer or string with Deflate.

    Compress a Buffer or string with Deflate.

    Definition Classes
    Zlib
    Example:
    1. zlib.deflate(buf[, options], callback)

  46. def deflate(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions], callback: Function): Unit

    Permalink

    Compress a Buffer or string with Deflate.

    Compress a Buffer or string with Deflate.

    Definition Classes
    Zlib
    Example:
    1. zlib.deflate(buf[, options], callback)

  47. def deflateRaw(buf: |[Buffer, String], callback: Function): Unit

    Permalink

    Compress a Buffer or string with DeflateRaw.

    Compress a Buffer or string with DeflateRaw.

    Definition Classes
    Zlib
    Example:
    1. zlib.deflateRaw(buf[, options], callback)

  48. def deflateRaw(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions], callback: Function): Unit

    Permalink

    Compress a Buffer or string with DeflateRaw.

    Compress a Buffer or string with DeflateRaw.

    Definition Classes
    Zlib
    Example:
    1. zlib.deflateRaw(buf[, options], callback)

  49. def deflateSync(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions] = js.native): Unit

    Permalink

    Compress a Buffer or string with Deflate.

    Compress a Buffer or string with Deflate.

    Definition Classes
    Zlib
    Example:
    1. zlib.deflateSync(buf[, options])

  50. var domain: String

    Permalink
    Definition Classes
    IEventEmitter
  51. def emit(name: String, args: Any*): Any

    Permalink

    Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each.

    Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each.

    Returns true if the event had listeners, false otherwise.

    name

    the event name

    args

    the event arguments

    Definition Classes
    IEventEmitter
    Example:
    1. emitter.emit(name[, arg1][, arg2][, ...])

  52. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  53. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  54. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  55. def flush(callback: Function): Unit

    Permalink

    Flush pending data.

    Flush pending data. Don't call this frivolously, premature flushes negatively impact the effectiveness of the compression algorithm.

    Definition Classes
    Zlib
    Example:
    1. zlib.flush([kind], callback)

  56. def flush(kind: CompressionFlush, callback: Function): Unit

    Permalink

    Flush pending data.

    Flush pending data. Don't call this frivolously, premature flushes negatively impact the effectiveness of the compression algorithm.

    Definition Classes
    Zlib
    Example:
    1. zlib.flush([kind], callback)

  57. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  58. def getMaxListeners(): Int

    Permalink

    Returns the current max listener value for the EventEmitter which is either set by emitter.setMaxListeners(n) or defaults to EventEmitter.defaultMaxListeners.

    Returns the current max listener value for the EventEmitter which is either set by emitter.setMaxListeners(n) or defaults to EventEmitter.defaultMaxListeners.

    Definition Classes
    IEventEmitter
    Example:
    1. emitter.getMaxListeners()

    See also

    setMaxListeners()

  59. def gunzip(buf: |[Buffer, String], callback: Function): Unit

    Permalink

    Decompress a Buffer or string with Gunzip.

    Decompress a Buffer or string with Gunzip.

    Definition Classes
    Zlib
    Example:
    1. zlib.gunzip(buf[, options], callback)

  60. def gunzip(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions], callback: Function): Unit

    Permalink

    Decompress a Buffer or string with Gunzip.

    Decompress a Buffer or string with Gunzip.

    Definition Classes
    Zlib
    Example:
    1. zlib.gunzip(buf[, options], callback)

  61. def gunzipSync(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions] = js.native): Unit

    Permalink

    Decompress a Buffer or string with Gunzip.

    Decompress a Buffer or string with Gunzip.

    Definition Classes
    Zlib
    Example:
    1. zlib.gunzipSync(buf[, options])

  62. def gzip(buf: |[Buffer, String], callback: Function): Unit

    Permalink

    Compress a Buffer or string with Gzip.

    Compress a Buffer or string with Gzip.

    Definition Classes
    Zlib
    Example:
    1. zlib.gzip(buf[, options], callback)

  63. def gzip(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions], callback: Function): Unit

    Permalink

    Compress a Buffer or string with Gzip.

    Compress a Buffer or string with Gzip.

    Definition Classes
    Zlib
    Example:
    1. zlib.gzip(buf[, options], callback)

  64. def gzipSync(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions] = js.native): Unit

    Permalink

    Compress a Buffer or string with Gzip.

    Compress a Buffer or string with Gzip.

    Definition Classes
    Zlib
    Example:
    1. zlib.gzipSync(buf[, options])

  65. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  66. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  67. def inflate(buf: |[Buffer, String], callback: Function): Unit

    Permalink

    Decompress a Buffer or string with Inflate.

    Decompress a Buffer or string with Inflate.

    Definition Classes
    Zlib
    Example:
    1. zlib.inflate(buf[, options], callback)

  68. def inflate(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions], callback: Function): Unit

    Permalink

    Decompress a Buffer or string with Inflate.

    Decompress a Buffer or string with Inflate.

    Definition Classes
    Zlib
    Example:
    1. zlib.inflate(buf[, options], callback)

  69. def inflateRaw(buf: |[Buffer, String], callback: Function): Unit

    Permalink

    Decompress a Buffer or string with InflateRaw.

    Decompress a Buffer or string with InflateRaw.

    Definition Classes
    Zlib
    Example:
    1. zlib.inflateRaw(buf[, options], callback)

  70. def inflateRaw(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions], callback: Function): Unit

    Permalink

    Decompress a Buffer or string with InflateRaw.

    Decompress a Buffer or string with InflateRaw.

    Definition Classes
    Zlib
    Example:
    1. zlib.inflateRaw(buf[, options], callback)

  71. def inflateRawSync(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions] = js.native): Unit

    Permalink

    Decompress a Buffer or string with InflateRaw.

    Decompress a Buffer or string with InflateRaw.

    Definition Classes
    Zlib
    Example:
    1. zlib.inflateRawSync(buf[, options])

  72. def inflateSync(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions] = js.native): Unit

    Permalink

    Decompress a Buffer or string with Inflate.

    Decompress a Buffer or string with Inflate.

    Definition Classes
    Zlib
    Example:
    1. zlib.inflateSync(buf[, options])

  73. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  74. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  75. def listenerCount(eventName: String): Int

    Permalink

    Returns the number of listeners listening to the event named eventName.

    Returns the number of listeners listening to the event named eventName.

    Definition Classes
    IEventEmitter
    Example:
    1. emitter.listenerCount(eventName)

  76. def listeners(eventName: String): Array[Function]

    Permalink

    Returns a copy of the array of listeners for the event named eventName.

    Returns a copy of the array of listeners for the event named eventName.

    Definition Classes
    IEventEmitter
    Example:
    1. emitter.listeners(eventName)

  77. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  78. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  79. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  80. def on(eventName: String, listener: Function): Zlib.this.type

    Permalink

    Adds the listener function to the end of the listeners array for the event named eventName.

    Adds the listener function to the end of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventName and listener will result in the listener being added, and called, multiple times.

    Returns a reference to the EventEmitter so calls can be chained.

    Definition Classes
    IEventEmitter
    Example:
    1. emitter.on(eventName, listener)

  81. def once(eventName: String, listener: Function): Zlib.this.type

    Permalink

    Adds a one time listener function for the event named eventName.

    Adds a one time listener function for the event named eventName. This listener is invoked only the next time eventName is triggered, after which it is removed.

    Definition Classes
    IEventEmitter
    Example:
    1. emitter.once(eventName, listener)

  82. def params(level: CompressionLevel, strategy: CompressionStrategy, callback: Function): Unit

    Permalink

    Dynamically update the compression level and compression strategy.

    Dynamically update the compression level and compression strategy. Only applicable to deflate algorithm.

    Definition Classes
    Zlib
    Example:
    1. zlib.params(level, strategy, callback)

  83. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  84. def removeAllListeners(): Zlib.this.type

    Permalink

    Removes all listeners, or those of the specified eventName.

    Removes all listeners, or those of the specified eventName.

    Note that it is bad practice to remove listeners added elsewhere in the code, particularly when the EventEmitter instance was created by some other component or module (e.g. sockets or file streams).

    Returns a reference to the EventEmitter so calls can be chained.

    Definition Classes
    IEventEmitter
    Example:
    1. emitter.removeAllListeners([eventName])

  85. def removeAllListeners(eventName: String): Zlib.this.type

    Permalink

    Removes all listeners, or those of the specified eventName.

    Removes all listeners, or those of the specified eventName.

    Note that it is bad practice to remove listeners added elsewhere in the code, particularly when the EventEmitter instance was created by some other component or module (e.g. sockets or file streams).

    Returns a reference to the EventEmitter so calls can be chained.

    Definition Classes
    IEventEmitter
    Example:
    1. emitter.removeAllListeners([eventName])

  86. def removeListener(eventName: String, listener: Function): Zlib.this.type

    Permalink

    Removes the specified listener from the listener array for the event named eventName.

    Removes the specified listener from the listener array for the event named eventName. removeListener will remove, at most, one instance of a listener from the listener array. If any single listener has been added multiple times to the listener array for the specified eventName, then removeListener must be called multiple times to remove each instance.

    Note that once an event has been emitted, all listeners attached to it at the time of emitting will be called in order. This implies that any removeListener() or removeAllListeners() calls after emitting and before the last listener finishes execution will not remove them from emit() in progress. Subsequent events will behave as expected.

    Definition Classes
    IEventEmitter
    Example:
    1. emitter.removeListener(eventName, listener)

  87. def reset(): Unit

    Permalink

    Reset the compressor/decompressor to factory defaults.

    Reset the compressor/decompressor to factory defaults. Only applicable to the inflate and deflate algorithms.

    Definition Classes
    Zlib
    Example:
    1. zlib.reset()

  88. def setMaxListeners(n: Int): Zlib.this.type

    Permalink

    By default EventEmitters will print a warning if more than 10 listeners are added for a particular event.

    By default EventEmitters will print a warning if more than 10 listeners are added for a particular event. This is a useful default that helps finding memory leaks. Obviously, not all events should be limited to just 10 listeners. The emitter.setMaxListeners() method allows the limit to be modified for this specific EventEmitter instance. The value can be set to Infinity (or 0) for to indicate an unlimited number of listeners.

    Returns a reference to the EventEmitter so calls can be chained.

    Definition Classes
    IEventEmitter
    Example:
    1. emitter.setMaxListeners(n)

  89. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  90. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  91. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  92. def unzip(buf: |[Buffer, String], callback: Function): Unit

    Permalink

    Decompress a Buffer or string with Unzip.

    Decompress a Buffer or string with Unzip.

    Definition Classes
    Zlib
    Example:
    1. zlib.unzip(buf[, options], callback)

  93. def unzip(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions], callback: Function): Unit

    Permalink

    Decompress a Buffer or string with Unzip.

    Decompress a Buffer or string with Unzip.

    Definition Classes
    Zlib
    Example:
    1. zlib.unzip(buf[, options], callback)

  94. def unzipSync(buf: |[Buffer, String], options: |[CompressionOptions, RawOptions] = js.native): Unit

    Permalink

    Decompress a Buffer or string with Unzip.

    Decompress a Buffer or string with Unzip.

    Definition Classes
    Zlib
    Example:
    1. zlib.unzipSync(buf[, options])

  95. var usingDomains: Boolean

    Permalink
    Definition Classes
    IEventEmitter
  96. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  97. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  98. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  99. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Zlib

Inherited from IEventEmitter

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped