Short version:
I see there is an alchemy method called supplyFile(), but the second arg is a ByteArray... what in the world is that for?!?!
Longer version:
I would like to do the following:
Open a file and assign it to a global variable on the C side of alchemy.
Read in (and process) a chunk of bytes on the C side
Send them to Actionscript for display
Go to step 2 until EOF or notification from Actionscript
Close the file
I'm able to do this right now by opening the file and reading the chunks into a ByteArray on the Actionscript side and then passing it to C for processing and back- but this calls some unnecessary overhead by needing to do AS3_ByteArray_writeBytes()/AS3_ByteArray_readBytes() on the C side in order to manipulate the data in a char *.
Is there any way to simply fopen() a file on the C side and read in some bytes?
Asssume we are talking about a very large file on disk (>4GB).