Thanks for your answer.
In my .Net example:
...
long t0 = st.ElapsedMilliseconds;
PyBuffer myarr = myPyByteArray.GetBuffer();
byte[] myCsharpByteArray = new byte[(int)myarr.Length];
myarr.Read(myCsharpByteArray, 0, (int)myarr.Length, 0);
long t1 = st.ElapsedMilliseconds;
...
Now the conversion takes less than 10 ms.
Thanks,
Jordan
_______________________________________________
PythonNet mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/pythonnet.python.org/
Member address: [email protected]