Unable to pass byte array from UWP C# Component to WinRT C++ component

170 views Asked by At

I'm trying to render image data in the WinRT C++ component, so I'm passing a byte array from the UWP component to the WinRT component. But IDL Doesn't support Byte*

StreamSamplePool.cpp

void StreamSamplePool::HandleFrameData(BYTE* frameData)
{
}

StreamSamplePool.h

void HandleFrameData(BYTE* pData);  

This is compiling without any issues but the problem is when we want to define this in the IDL file, IDL doesn't support pointers, alternatively tried using IVector/Array of unsigned char as well but that too doesn't seem to be supported in the IDL file. How do I pass the byte array from UWP Component to the WinRT Component? Any sample snippet of passing byte array from C# and definition in IDL file would be helpful

0

There are 0 answers