valueWithPointer static method

NSValue valueWithPointer(
  1. Pointer<NativeType> value
)

Implementation

static NSValue valueWithPointer(Pointer value) {
  NSObject result =
      type(of: NSValue).performSync(SEL('valueWithPointer:'), args: [value]);
  return NSValue.fromPointer(result.pointer);
}