1 Reply Latest reply: Feb 13, 2012 7:12 PM by __phillip RSS

    How to convert ByteArray or Vector.<Number> to C pointer

    uchemo Community Member

      Hi, I want to pass ByteArray and Vector.<Number> to Alchemy, I do not know how to convert them to C pointer.

      I use AS3_PtrValue just like:


      double* pBuffer = AS3_PtrValue( vctSrc );

      unsigned char* pBuffer = AS3_PtrValue( vctSrc );


      but they return null, can someone tell me how to do it?