alloc function

Pointer<Void> alloc(
  1. Class? isa
)

Implementation

Pointer<Void> alloc(Class? isa) {
  isa ??= Class('NSObject');
  Pointer<Void> resultPtr = isa.performSync(SEL('alloc'), decodeRetVal: false);
  return msgSendSync(resultPtr, SEL('autorelease'), decodeRetVal: false);
}