compressedDataUsingAlgorithm method
NSData?
compressedDataUsingAlgorithm(
- NSDataCompressionAlgorithm algorithm, {
- required Pointer<
Pointer< error,ObjCObject> >
compressedDataUsingAlgorithm:error:
iOS: introduced 13.0.0 macOS: introduced 10.15.0
Implementation
NSData? compressedDataUsingAlgorithm(
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
: NSData.castFromPointer(_ret, retain: true, release: true);
}