initWithBytesNoCopy$1 method
initWithBytesNoCopy:length:deallocator:
Implementation
NSMutableData initWithBytesNoCopy$1(
ffi.Pointer<ffi.Void> bytes, {
required int length,
objc.ObjCBlock<ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.UnsignedLong)>?
deallocator,
}) {
objc.checkOsVersionInternal(
'NSMutableData.initWithBytesNoCopy:length:deallocator:',
iOS: (false, (7, 0, 0)),
macOS: (false, (10, 9, 0)),
);
final $ret = _objc_msgSend_134vhyh(
object$.ref.retainAndReturnPointer(),
_sel_initWithBytesNoCopy_length_deallocator_,
bytes,
length,
deallocator?.ref.pointer ?? ffi.nullptr,
);
return NSMutableData.fromPointer($ret, retain: false, release: true);
}