nodeApiCreateObjectWithProperties function

  1. @experimental
  2. @Available.new(node: '>=24.12.0 <25.0.0 || >=25.2.0')
  3. @Native<Int32 Function(NapiEnv, NapiValue, Pointer<NapiValue>, Pointer<NapiValue>, Size, Pointer<NapiValue>)>(NapiEnv, NapiValue, Pointer<NapiValue>, Pointer<NapiValue>, Size, Pointer<NapiValue>)>(symbol: 'node_api_create_object_with_properties')
int nodeApiCreateObjectWithProperties(
  1. NapiEnv env,
  2. NapiValue prototypeOrNull,
  3. Pointer<NapiValue> propertyNames,
  4. Pointer<NapiValue> propertyValues,
  5. int propertyCount,
  6. Pointer<NapiValue> result,
)

Implementation

@experimental
@Available(node: '>=24.12.0 <25.0.0 || >=25.2.0')
@Native<
  Int32 Function(
    NapiEnv,
    NapiValue,
    Pointer<NapiValue>,
    Pointer<NapiValue>,
    Size,
    Pointer<NapiValue>,
  )
>(symbol: 'node_api_create_object_with_properties')
external int nodeApiCreateObjectWithProperties(
  NapiEnv env,
  NapiValue prototypeOrNull,
  Pointer<NapiValue> propertyNames,
  Pointer<NapiValue> propertyValues,
  int propertyCount,
  Pointer<NapiValue> result,
);