无法将字节数组从 UWP C# 组件传递到 WinRT C++成分
我正在尝试在WinRT C ++组件中渲染图像数据,因此我将一个字节数组从UWP组件传递给WinRT组件。 但是IDL不支持字节*
streamSamplepool.cpp
void StreamSamplePool::HandleFrameData(BYTE* frameData)
{
}
streamSamplepool.h
void HandleFrameData(BYTE* pData);
这是没有任何问题的编译,但是问题是我们想在IDL文件中定义此问题时不支持指针,另外也尝试使用无符号字符的Ivector/数组,但这似乎也不支持IDL文件中的支持。如何将字节数组从UWP组件传递到WinRT组件? 从C#传递字节数组的任何示例段,IDL文件中的定义都会有所帮助
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论