Closed
Description
Proposed extension:
XyzList Pointer<Xyz>.asTypedList(int length, {NativeFinalizerFunction finalizer})
You can't put typed list into NativeFinalizer
because they don't extend Finalizable
(even though they behave a bit like one - we never cache internal data pointer and let typed data die).
Users currently work around this limitation by creating a Finalizable
object and linking its lifetime to that of typed data through Expando
. It would be nice if such workarounds were unnecessary
We should take this into account when exposing external strings as well.
/cc @dcharkes
/cc @Haidar0096