initWithContentsOfMappedFile method

ObjCObjectBase? initWithContentsOfMappedFile(
  1. NSString path
)

initWithContentsOfMappedFile:

Implementation

objc.ObjCObjectBase? initWithContentsOfMappedFile(objc.NSString path) {
  objc.checkOsVersionInternal(
    'NSData.initWithContentsOfMappedFile:',
    iOS: (false, (2, 0, 0)),
    macOS: (false, (10, 0, 0)),
  );
  final _ret = _objc_msgSend_1sotr3r(
    this.ref.retainAndReturnPointer(),
    _sel_initWithContentsOfMappedFile_,
    path.ref.pointer,
  );
  return _ret.address == 0
      ? null
      : objc.ObjCObjectBase(_ret, retain: false, release: true);
}