URLWithDataRepresentation static method
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);
}