compress method

Future<void> compress()

Implementation

Future<void> compress() async {
  final gzip = GZipCodec();
  final compressedData = gzip.encode(_byteBuffer);
  _byteBuffer = Uint8List.fromList(compressedData);
  _position = _byteBuffer.length;
}