ConstData to compress. Read on a pool thread — do not detach or resize its backing ArrayBuffer until the returned promise settles, or the read may see freed/truncated memory.
Optionaloffset: number
Start offset in bytes. Default 0.
Optionallength: number
Number of bytes to compress. Default rest of buffer.
Compress on a pool thread (asynchronous, non-blocking).