Questions tagged [pin-ptr]
17 questions
0
votes
1 answer
useless pin_ptr while copying array
I have some legacy code, which copy a native array into a managed one:
float* nativeValues = new float[NumberOfSamples];
array^ managedValues = gcnew array(NumberOfSamples);
pin_ptr pinnedValues = &managedValues[0];
for (int…

ekt
- 129
- 2
- 11
0
votes
1 answer
issues with interior_ptr pin_ptr
I'm trying to construct a cli/c++ ref class. The purpose of this class is to wrap a native class pointer with some functionality. The native class pointer gets provided to me by a black box factory method. For the life of me I cant figure out how to…

Dmitry
- 1,513
- 1
- 15
- 33