compressedDataUsingAlgorithm method

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

compressedDataUsingAlgorithm:error:

Implementation

objc.NSData? compressedDataUsingAlgorithm(
  objc.NSDataCompressionAlgorithm algorithm, {
  required ffi.Pointer<ffi.Pointer<objc.ObjCObject>> error,
}) {
  objc.checkOsVersionInternal(
    'NSData.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
      : objc.NSData.castFromPointer(_ret, retain: true, release: true);
}