unzip static method

String unzip(
  1. List<int> compressedData
)

解压缩gzip数据 compressedData 压缩后的数据 @example

String decompressed = Tools.gunzip(compressedBytes);

Implementation

static String unzip(List<int> compressedData) {
  try {
    List<int> decompressedBytes = gzip.decode(compressedData);
    return utf8.decode(decompressedBytes);
  } catch (e) {
    return '';
  }
}