util/main.tea (8 lines of code) (raw):
/**
* Compress data by specified compress type, use isCompressorAvailable to check if the compress type is supported.
* @param src the data to be compressed
* @param compressType the compress type
* @return the compressed data
* @throws error if the compress type is not supported or the compress failed
*/
static async function deflateCompress(src: bytes): bytes