Skip navigation
Currently Being Moderated

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

Jan 16, 2012 3:58 AM

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?

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points