JSValue.newAtomUint32 constructor

JSValue.newAtomUint32(
  1. JSContext _ctx,
  2. int val, {
  3. bool autoDispose = true,
})

JS_AtomToValue

Implementation

JSValue.newAtomUint32(this._ctx, int val, {bool autoDispose = true}) {
  _atom = JS_NewAtomUInt32(_ctx.ref, val);
  _ref = calloc.call(sizeOf<JSValue_>())
    ..ref = JS_AtomToValue(_ctx.ref, _atom!);
  attach(Q_JS_FreeValueAddress.cast(), _ref.cast(), autoDispose: autoDispose);
}