allocate static method

Implementation

static Pointer<JSStaticValue> allocate(JSStaticValueStruct struct) {
  return malloc.call<JSStaticValue>(1)..ref.setValue(struct);
}