Flutter: ffi allocator/allocate funcs

18 Views Asked by At

I found a library from 2020 that uses func 'allocator' and 'allocate'.

I don't know how these 2 funcs are used now.

Thanks!

Example Code:

Pointer<Uint8> p = allocator(count: bytes.length);
Pointer<Uint8> p1 = allocate(count: bytes2.length);
0

There are 0 best solutions below