便捷方法
🌐 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.