stringWithCString static method

NSMutableString? stringWithCString(
  1. Pointer<Char> cString, {
  2. required int encoding,
})
override

stringWithCString:encoding:

Implementation

static NSMutableString? stringWithCString(
  ffi.Pointer<ffi.Char> cString, {
  required int encoding,
}) {
  final $ret = _objc_msgSend_erqryg(
    _class_NSMutableString,
    _sel_stringWithCString_encoding_,
    cString,
    encoding,
  );
  return $ret.address == 0
      ? null
      : NSMutableString.fromPointer($ret, retain: true, release: true);
}