便捷方法
¥Convenience methods
所有这些都以 <Buffer>、<TypedArray>、<DataView>、<ArrayBuffer> 或字符串作为第一个参数,第二个参数为可选参数,用于向 zlib
类提供选项,并将使用 callback(error, result)
调用提供的回调。
¥All of these take a <Buffer>, <TypedArray>, <DataView>, <ArrayBuffer>, or string
as the first argument, an optional second argument
to supply options to the zlib
classes and will call the supplied callback
with callback(error, result)
.
每个方法都有一个对应的 *Sync
方法,它们接受相同的参数,但没有回调。
¥Every method has a *Sync
counterpart, which accept the same arguments, but
without a callback.