decompressedDataUsingAlgorithm method

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

decompressedDataUsingAlgorithm:error:

Implementation

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