I am trying to write a managed C++/CLI wrapper to unmanaged class. One of the methods in the class has a signature like
audiodecoder::Decode(byte *pEncodedBuffer, unsigned int uiEncodedBufLen, byte **pDecodedAudio, unsigned int *uiDecodedAudioLen)
where *pEncodedBuffer is pointer to encoded audio sample and **pDecodedAudio is where the function would initialize memory and store the decoded audio. Actually that the data is audio should be of no consequence.
How would the would the wrapper for this method look like? Any suggestion would be helpful.