dataWithContentsOfMappedFile static method
ObjCObjectBase?
dataWithContentsOfMappedFile(
- NSString path
dataWithContentsOfMappedFile:
Implementation
static objc.ObjCObjectBase? dataWithContentsOfMappedFile(objc.NSString path) {
objc.checkOsVersionInternal(
'NSData.dataWithContentsOfMappedFile:',
iOS: (false, (2, 0, 0)),
macOS: (false, (10, 0, 0)),
);
final _ret = _objc_msgSend_1sotr3r(
_class_NSData,
_sel_dataWithContentsOfMappedFile_,
path.ref.pointer,
);
return _ret.address == 0
? null
: objc.ObjCObjectBase(_ret, retain: true, release: true);
}