How can I transfer ownership of a C-style array to a Windows Runtime component?

1 · Raymond Chen · Dec. 1, 2021, 5:41 p.m.
Suppose you have a large C-style array, and you want to transfer ownership of that array to a Windows Runtime component. For concreteness, let’s say that we have this: namespace Sample { runtimeclass Widget { // The "indices" array will be very large. The post How can I transfer ownership of a C-style array to a Windows Runtime component? appeared first on The Old New Thing....