Is it possible to access Flutter assets directly in FFI C function?

43 views Asked by At

Say I have an asset in Flutter data.bin and another c function

void processData(void* data, int size) 

Is it possible to access this binary asset "data.bin" in C directly?

I understand that I could use rootBundle.load("data.bin") and copy the data to C heap buffer. But as the data is very large, I hope it could be done without copy.

0

There are 0 answers