inputStreamWithURL static method

NSInputStream? inputStreamWithURL(
  1. NSURL url
)

inputStreamWithURL:

Implementation

static NSInputStream? inputStreamWithURL(NSURL url) {
  objc.checkOsVersionInternal(
    'NSInputStream.inputStreamWithURL:',
    iOS: (false, (4, 0, 0)),
    macOS: (false, (10, 6, 0)),
  );
  final $ret = _objc_msgSend_1sotr3r(
    _class_NSInputStream,
    _sel_inputStreamWithURL_,
    url.ref.pointer,
  );
  return $ret.address == 0
      ? null
      : NSInputStream.fromPointer($ret, retain: true, release: true);
}