Can anyone point me toward an example of using Platform::ArrayReference<T> on the Windows Phone 8? Every attempt I have made has caused a compiler syntax error. It is listed in the documentation as a part of WinRT, but I can’t find anything that conclusively identifies this as desktop-only or not.
I want to use this in my phone app to decrease the number of copies that are going on as I shuffle data between C# and C++, but if this is not allowed, perhaps I’ll just have to live with those copies.
Thank you in advance
I realized that I have been thinking about
ArrayReferencewrong. When interfacing with C# code, you still need to useArrayas your input parameters, but when passingArraysto other C++ objects or to C# code from C++ code, you can useArrayReferenceto wrap a C array in a Platform wrapper.