I am using Flex's Alchemy library to generate SWC's out of C files. I have a byte array (unsigned char buffer[size]
) in the c-layer that I'd like to return to the ActionScript layer as a ByteArray
. Do I have to iterate through the array and explicitly call AS3_Set
on each element or is there a way to just return the entire C array at once?
This can be accomplished by using the AS3_ByteArray_writeBytes function of the Alchemy API.