mirror of
https://github.com/wanghongenpin/proxypin.git
synced 2026-04-11 11:23:47 +08:00
18 lines
345 B
Dart
18 lines
345 B
Dart
import 'dart:io';
|
|
|
|
///GZIP 解压缩
|
|
List<int> gzipDecode(List<int> byteBuffer) {
|
|
GZipCodec gzipCodec = GZipCodec();
|
|
try {
|
|
return gzipCodec.decode(byteBuffer);
|
|
} catch (e) {
|
|
print("gzipDecode error: $e");
|
|
return byteBuffer;
|
|
}
|
|
}
|
|
|
|
///GZIP 解压缩
|
|
List<int> gzipEncode(List<int> input) {
|
|
return GZipCodec().encode(input);
|
|
}
|