initWithContentsOfURL$1 method

NSData? initWithContentsOfURL$1(
  1. NSURL url, {
  2. required int options,
  3. required Pointer<Pointer<ObjCObjectImpl>> error,
})

initWithContentsOfURL:options:error:

Implementation

NSData? initWithContentsOfURL$1(
  NSURL url, {
  required int options,
  required ffi.Pointer<ffi.Pointer<objc.ObjCObjectImpl>> error,
}) {
  final $ret = _objc_msgSend_8321cp(
    object$.ref.retainAndReturnPointer(),
    _sel_initWithContentsOfURL_options_error_,
    url.ref.pointer,
    options,
    error,
  );
  return $ret.address == 0
      ? null
      : NSData.fromPointer($ret, retain: false, release: true);
}