URLWithDataRepresentation static method

NSURL URLWithDataRepresentation(
  1. NSData data, {
  2. NSURL? relativeToURL,
})

URLWithDataRepresentation:relativeToURL:

Implementation

static NSURL URLWithDataRepresentation(NSData data, {NSURL? relativeToURL}) {
  objc.checkOsVersionInternal(
    'NSURL.URLWithDataRepresentation:relativeToURL:',
    iOS: (false, (9, 0, 0)),
    macOS: (false, (10, 11, 0)),
  );
  final $ret = _objc_msgSend_15qeuct(
    _class_NSURL,
    _sel_URLWithDataRepresentation_relativeToURL_,
    data.ref.pointer,
    relativeToURL?.ref.pointer ?? ffi.nullptr,
  );
  return NSURL.fromPointer($ret, retain: true, release: true);
}