initWithCString$1 method

ObjCObjectBase? initWithCString$1(
  1. Pointer<Char> bytes
)

initWithCString:

Implementation

objc.ObjCObjectBase? initWithCString$1(ffi.Pointer<ffi.Char> bytes) {
  objc.checkOsVersionInternal(
    'NSString.initWithCString:',
    iOS: (false, (2, 0, 0)),
    macOS: (false, (10, 0, 0)),
  );
  final _ret = _objc_msgSend_56zxyn(
    this.ref.retainAndReturnPointer(),
    _sel_initWithCString_,
    bytes,
  );
  return _ret.address == 0
      ? null
      : objc.ObjCObjectBase(_ret, retain: false, release: true);
}