compressedDataUsingAlgorithm method

NSMutableData? compressedDataUsingAlgorithm(
  1. NSDataCompressionAlgorithm algorithm, {
  2. required Pointer<Pointer<ObjCObject>> error,
})

compressedDataUsingAlgorithm:error:

iOS: introduced 13.0.0 macOS: introduced 10.15.0

Implementation

NSMutableData? compressedDataUsingAlgorithm(
  NSDataCompressionAlgorithm algorithm, {
  required ffi.Pointer<ffi.Pointer<objc.ObjCObject>> error,
}) {
  objc.checkOsVersionInternal(
    'NSMutableData.compressedDataUsingAlgorithm:error:',
    iOS: (false, (13, 0, 0)),
    macOS: (false, (10, 15, 0)),
  );
  final _ret = _objc_msgSend_1vnlaqg(
    this.ref.pointer,
    _sel_compressedDataUsingAlgorithm_error_,
    algorithm.value,
    error,
  );
  return _ret.address == 0
      ? null
      : NSMutableData.castFromPointer(_ret, retain: true, release: true);
}