I have an existing ByteArray in AS3 which I want to process (read and write) in Alchemy. All the examples I've seen of how to do this involve either using stream functions (fread, fwrite, etc), or copying the ByteArray data first into another buffer before using it.
Is there a way to directly access a ByteArray's memory in C/alchemy, without any intermediary?
My assumption is that using stream functions won't be as efficient as directly writing to memory.
Edit: My friend raises a good point. Is it possible that ByteArray data isn't necessarily physically contiguous in memory? In which case it'd be a bit of a nightmare wrangling with Adobe's proprietary memory format. Anyone know either way?