便捷方法
所有这些都将 Buffer、TypedArray、DataView、ArrayBuffer 或字符串作为第一个参数,可选的第二个参数为 zlib 类提供选项,并将使用 callback(error, result) 调用提供的回调。
每个方法都有一个对应的 *Sync 方法,它们接受相同的参数,但没有回调。
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).
Every method has a *Sync counterpart, which accept the same arguments, but
without a callback.