This repository was archived by the owner on Jan 17, 2024. It is now read-only.
This repository was archived by the owner on Jan 17, 2024. It is now read-only.
Is it possible to get pointer of Uint8List instead of allocating then copy #31
Closed
Description
Echo #27
I have a package that binds to native lz4 compression lib via dart ffi, however, with this restriction, I have to duplicate the data before compression or decompression, which I really really want to avoid.
I understand a dart reference is GC controlled and I can play some tricks to hold the reference to avoid unexpected GC kick in, rather than actually duplicating data before decompression, please let me know your concerns. Thanks!
BTW, If you'd like to understand my scenario better, source code is here
Metadata
Metadata
Assignees
Labels
No labels